Ejemplo n.º 1
0
$posts = blog_query($args);
foreach ($posts as $post) {
    $html .= post_card($post);
}
echo $html;
$html = '';
?>
				</div>
			</div>
			<div class="featured">
				<h3>Creative Swag <span><A href="<?php 
echo site_url('/');
?>
/art/" title="View Geeb's Artistic Creations">A digital exhibition of Geeb's creations<s></s></a></span></h3>
				<div class="listing">
					<?php 
$args = array('nopaging' => 0, 'orderby' => 'DATE', 'order' => 'DESC', 'post_status' => 'publish', 'cat' => 'art', 'posts_per_page' => 4);
$posts = blog_query($args);
foreach ($posts as $post) {
    $html .= post_card($post);
}
echo $html;
$html = '';
?>
				</div>
			</div>
		</div>
	</section>
<?php 
//get_sidebar();
get_footer();
Ejemplo n.º 2
0
if (have_posts()) {
    ?>
				<header>
					<h2>
						<?php 
    printf(__('Tag Archives: %s', 'twentyfourteen'), single_tag_title('', false));
    ?>
					</h2>
				</header>
				<div class="listing">
					<?php 
    $args = array('nopaging' => 0, 'orderby' => 'DATE', 'order' => 'DESC', 'post_status' => 'publish', 'tag' => $tag, 'posts_per_page' => 24);
    $posts = array();
    $posts = blog_query($args);
    foreach ($posts as $post) {
        $html .= post_card($post, $featured);
    }
    echo $html;
    $html = '';
    ?>
				</div>
			<?php 
} else {
    // If no content, include the "No posts found" template.
    get_template_part('content', 'none');
}
?>
		</div>
		<?php 
// Previous/next page navigation.
twentyfourteen_paging_nav();