This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<?php | |
$args1 = array( | |
'post_type' => 'post', | |
'orderby' => 'rand', | |
'category_name' => 'wineries', | |
'posts_per_page' => 1 | |
); $wineries = new WP_Query($args1); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// I need to make sure that scripts and styles are able to be recognized on the website. | |
function HC_Scripts() { | |
wp_enqueue_style('style' , get_stylesheet_uri()); | |
wp_enqueue_style('grid' , get_template_directory_uri() .'/grid.css', array(), null, 'all'); | |
wp_enqueue_style('fonts' , 'https://fonts.googleapis.com/css?family=PT+Sans:400,400i|Roboto+Condensed:400,700', false ); | |
wp_enqueue_style('load-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'HC_Scripts' ); | |
?><?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<article> | |
<div class="left"> | |
<h3>Categories used on the website</h3> | |
<div class="cat-listing"> | |
<span class="category-name">Category name</span><span class="times-used">Times used</span> | |
<p> | |
<?php | |
$args = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Display weekly archives | |
<?php wp_get_archives('type=weekly'); ?> | |
// Last 10 weeks archive | |
<?php wp_get_archives('type=weekly&limit=10'); ?> | |
// Monthly archive with post count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |