<?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 ($tempera_pagination == "Enable") {
        tempera_pagination();
    } else {
        tempera_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', 'tempera');
    ?>
</h1>
Esempio n. 2
0
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$the_query = new WP_Query('post_status=publish&orderby=date&order=desc&posts_per_page=' . get_option('posts_per_page') . '&paged=' . $paged);
?>


		<?php 
if ($the_query->have_posts()) {
    /* Start the Loop */
    while ($the_query->have_posts()) {
        $the_query->the_post();
        global $more;
        $more = 0;
        get_template_part('content/content', get_post_format());
    }
    if ($tempera_pagination == "Enable") {
        tempera_pagination($the_query->max_num_pages);
    } else {
        tempera_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('Nothing Found', 'tempera');
    ?>
</h1>
					</header><!-- .entry-header -->

					<div class="entry-content">