Return only one post format in index.php [duplicate]
I solved the problem. All I need to add is the following line of code query_posts( $args ); The result will be something like this: <div class=”content”> <?php if (have_posts()) : ?> <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $total_post_count = wp_count_posts(); $published_post_count = $total_post_count->publish; $total_pages = ceil( $published_post_count / $posts_per_page ); if ( … Read more