?> </article> </section> <?php // Start the Loop. while (have_posts()) { the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part('content', get_post_format()); } majale_pagination(); } else { // If no content, include the "No posts found" template. get_template_part('content', 'none'); } ?> </div> <?php /** * get sidebars. */ get_sidebar(); get_sidebar('right'); ?>
* and paginate current * posts */ $majale_blog_query = new WP_Query(array('ignore_sticky_posts' => 1, 'post__not_in' => get_option("sticky_posts"), 'paged' => get_query_var('paged') ? get_query_var('paged') : 1)); if (have_posts()) { // Start the Loop. while ($majale_blog_query->have_posts()) { $majale_blog_query->the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part('content', get_post_format()); } majale_pagination($majale_blog_query); } else { // If no content, include the "No posts found" template. get_template_part('content', 'none'); } ?> </div> <?php /** * get sidebars. */ get_sidebar(); get_sidebar('right'); ?>