예제 #1
0
								Older Posts
							<?php 
    }
    ?>
						</div>
					<?php 
    while (have_posts()) {
        the_post();
        ?>
							<div class="row container" style="tbl table-bordered">
								<div class="row">
									<?php 
        get_template_part('thumbnailformat');
        ?>
									<?php 
        if (more_posts()) {
            the_post();
            get_template_part('thumbnailformat');
        }
        ?>
								</div>
							</div>
    						<hr>
					<?php 
    }
    ?>
					</div>
				<div class="pager">
					
  					<li><?php 
    previous_posts_link(' Previous Page');
예제 #2
0
 */
function more_posts()
{
    global $wp_query;
    return $wp_query->current_post + 1 < $wp_query->post_count;
}
get_header();
?>

		<section id="primary">
			<div id="content" role="main">

			<?php 
get_template_part('parts/post', 'list-header');
query_posts('posts_per_page=-1');
if (have_posts()) {
    while (more_posts()) {
        the_post();
        get_template_part('article', 'content');
        //if we display a page, check if comments are enabled in options. If it is a post, no conditions.
        if (is_page() && esc_attr($tc_theme_options['tc_page_comments']) == 1 || is_single()) {
            comments_template('', true);
        }
    }
}
?>

			</div><!-- #content -->
		</section><!-- #primary -->
<?php 
get_footer();
				<div class="article-content">
					<?php 
                the_content();
                ?>
				</div>

			<?php 
            }
            ?>

			<!--End the article tag -->
			</article>

		<!-- Show horizontal divider if not the last post -->
		<?php 
            if (more_posts() != 0) {
                echo '<hr class="post-separator" />';
            }
            ?>

		<?php 
        }
        ?>

	<?php 
    } else {
        ?>
		<p>
			<?php 
        _e("Nothing Matches your query.");
        ?>