<?php //cryout_before_content_hook(); if (have_posts()) { /* Start the Loop */ $old = get_option('posts_per_page'); update_option('posts_per_page', $nirvanas['nirvana_frontpostscount']); $paged = get_query_var('paged') ? get_query_var('paged') : 1; $the_query = new WP_Query(array('posts_per_page' => $nirvanas['nirvana_frontpostscount'], 'paged' => $paged)); while ($the_query->have_posts()) { $the_query->the_post(); global $more; $more = 0; get_template_part('content/content', get_post_format()); } if ($nirvana_pagination == "Enable") { nirvana_pagination($the_query->max_num_pages); } else { nirvana_content_nav('nav-below'); } } else { ?> <article id="post-0" class="post no-results not-found"> <header class="entry-header"> <h1 class="entry-title"><?php _e('No Posts to Display', 'nirvana'); ?> </h1> </header><!-- .entry-header --> <div class="entry-content">
?> <?php /* Run the loop for the search to output the results. * If you want to overload this in a child theme then include a file * called loop-search.php and that will be used instead. */ get_template_part('content/content', get_post_format()); ?> <?php } ?> <?php if ($nirvana_pagination == "Enable") { nirvana_pagination(); } else { nirvana_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', 'nirvana'); ?> </h1>