Title: Including the first post
Last modified: August 24, 2016

---

# Including the first post

 *  Resolved [Expel](https://wordpress.org/support/users/expel/)
 * (@expel)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/including-the-first-post/)
 * Hello.
    Why is it repeating the first post when it loads the posts?
 * My “Repeater Template”, if it’s necessary:
 *     ```
       <article class="post-<?php the_id(); ?> group">
   
       			<?php echo get_post_meta($post->ID, 'Video', true); ?>
   
       			<?php
       			if ( has_post_thumbnail() ) {
       				the_post_thumbnail();
       			}
       			?>
   
       			<a href="<?php the_permalink(); ?>" class="title">
       				<h2><?php the_title(); ?></h2>
       			</a>
       			<p class="posted">Published at: <?php the_time('g:i, G M') ?> - Posted by: <?php echo get_the_author_link(); ?></p>
       			<div class="post-content">
       				<?php the_excerpt(); ?>
       			</div>
       			<div class="metas">
       				<i class="fa fa-comments"></i>
       				<?php comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?>
       				 <span class="tags"><?php the_tags( '<i class="fa fa-tags"></i> ', ', ', '<br />' ); ?></span>
       			</div>
       		</article>
       ```
   
 * Document:
 *     ```
       if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
       		<article class="post-<?php the_id(); ?> first-post group">
   
       			<?php echo get_post_meta($post->ID, 'Video', true); ?>
   
       			<?php
       			if ( has_post_thumbnail() ) {
       				the_post_thumbnail();
       			}
       			?>
   
       			<a href="<?php the_permalink(); ?>" class="title">
       				<h2><?php the_title(); ?></h2>
       			</a>
       			<p class="posted">Published at: <?php the_time('g:i, G M') ?> - Posted by: <?php echo get_the_author_link(); ?></p>
       			<div class="post-content">
       				<?php the_excerpt(); ?>
       			</div>
       			<div class="metas">
       				<i class="fa fa-comments"></i>
       				<?php comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?>
       				 <span class="tags"><?php the_tags( '<i class="fa fa-tags"></i> ', ', ', '<br />' ); ?></span>
       			</div>
       		</article>
       	<?php endwhile; ?>
   
       	<?php echo do_shortcode('[ajax_load_more post_type="post" category="blog"]'); ?>
   
       	<?php
       	// clean up after the query and pagination
       	wp_reset_postdata(); 
   
       	else:  ?>
       		<p class="sorry-posts"><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
       	<?php endif; ?>
       ```
   
 * Let me know if I need to provide anything else.
 * Thanks.
    Best regards, Expel.
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Expel](https://wordpress.org/support/users/expel/)
 * (@expel)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/including-the-first-post/#post-5981046)
 * Never mind…
    My misstake.

Viewing 1 replies (of 1 total)

The topic ‘Including the first post’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

## Tags

 * [repeating](https://wordpress.org/support/topic-tag/repeating/)

 * 1 reply
 * 1 participant
 * Last reply from: [Expel](https://wordpress.org/support/users/expel/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/including-the-first-post/#post-5981046)
 * Status: resolved