?> <?php global $more; $more = 0; ?> <?php get_template_part('content', get_post_format()); ?> <?php } ?> <?php if ($mantra_pagination == "Enable") { mantra_pagination(); } else { mantra_content_nav('nav-below'); } ?> <?php } else { ?> <article id="post-0" class="post no-results not-found"> <header class="entry-header"> <h1 class="entry-title"><?php _e('Nothing Found', 'mantra'); ?> </h1>
$paged = get_query_var('paged') ? get_query_var('paged') : 1; if (is_numeric($slug) && $slug > 0) { $the_query = new WP_Query('cat=' . $slug . '&post_status=publish&orderby=date&order=desc&posts_per_page=' . get_option('posts_per_page') . '&paged=' . $paged); } else { $the_query = new WP_Query('category_name=' . $slug . '&post_status=publish&orderby=date&order=desc&posts_per_page=' . get_option('posts_per_page') . '&paged=' . $paged); } /* Start the Loop */ while ($the_query->have_posts()) { $the_query->the_post(); global $more; $more = 0; // more gets lost inside page templates get_template_part('content', get_post_format()); } if ($mantra_pagination == "Enable") { mantra_pagination($the_query->max_num_pages); } else { mantra_content_nav('nav-below'); } ?> </div><!-- #content --> <?php get_sidebar(); ?> </section><!-- #container --> <?php get_footer();