Ajax Load More isn’t pulling in the correct post information
-
So instead of pulling the content from the post, it decides to iterate through all the posts from the latest to the oldest.
<?php
/**
* The Template for displaying all single posts
*
*/get_header();
// Start the Loop.
while ( have_posts() ) : the_post();
?><div class=”c-memos-single-container”>
/public/images/pink-wave.png”></img><div class=”o-memos-single-nav”>
<div class=”o-memos-single-nav-previous-btn single-nav-btn”> < PREVIOUS </div>
<div class=”o-memos-single-nav-search-btn single-nav-btn”> << BACK TO SEARCH </div>
</div><div class=”o-memo”>
<?php echo do_shortcode(‘[ajax_load_more posts_per_page=”1″]’);?>
</div></div><!–.c-memos-single-container–>
<?php endwhile;
get_footer();
- The topic ‘Ajax Load More isn’t pulling in the correct post information’ is closed to new replies.