Exemplo n.º 1
0
 function wm_pagination_blog($atts)
 {
     //Preparing output
     if (is_page_template('home.php') && !is_home()) {
         $atts['query'] = wm_blog_page_query();
     }
     //Output
     return $atts;
 }
Exemplo n.º 2
0
<?php

/**
 * Blog page template loop
 *
 * @package    WebMan WordPress Theme Framework
 * @copyright  2014 WebMan - Oliver Juhas
 */
/**
 * Helper variables
 */
global $wm_blog_page_id;
$wm_blog_page_id = get_the_ID();
$blog_posts = wm_blog_page_query();
/**
 * Actual loop
 */
if ($blog_posts->have_posts()) {
    wmhook_postslist_before();
    echo '<div id="list-articles" class="list-articles clearfix"' . wm_schema_org('item_list') . '>';
    wmhook_postslist_top();
    while ($blog_posts->have_posts()) {
        $blog_posts->the_post();
        get_template_part('content', get_post_format());
    }
    wmhook_postslist_bottom();
    echo '</div>';
    wmhook_postslist_after();
} else {
    wm_not_found();
}