Example #1
0
					<?php 
        /* Include the Post-Format-specific template for the content.
         * If you want to overload this in a child theme then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('content/content', get_post_format());
        ?>

				<?php 
    }
    ?>

					<?php 
    if ($parabola_pagination == "Enable") {
        parabola_pagination();
    } else {
        parabola_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', 'parabola');
    ?>
</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/content', get_post_format());
}
if ($parabola_pagination == "Enable") {
    parabola_pagination($the_query->max_num_pages);
} else {
    parabola_content_nav('nav-below');
}
?>
		
	</div><!-- #content -->
	
	<?php 
parabola_get_sidebar();
?>
	
</section><!-- #container -->

<?php 
get_footer();