Hide button if no extra posts to load
-
Hi,
Looking for a way to only show the load more button in case there are more posts to load, right now it shows no matter the number of posts,
I using the plugin with the Repeater addon,
Thanks
-
Hi TakiraThemes,
Can you share a link and your repeater template?
Sounds like there is an error somewhere.Hi,
The site is local, but here is my repeater template
<li class=”small-12 columns”>
“>
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail(array(308, 195));
}
?><!– Display the Post Title with Hyperlink –>
<h2 class=”post-title”>
“><?php the_title(); ?></h2><div class=”postmeta”> By <span class=”post-author”><?php the_author() ?> </span> <span class=”post-date”><?php the_time(‘F j, Y’); ?> </span></div>
I can send you a link to the dev site on private message if that helps
Is your issue that if your posts_per_page is 6 and you have 6 posts the load more button is active until you press it again?
My issue is that no matter how many posts are displayed the load more button is present, I think it should only display in case there are more posts to display
Yep.
Since you didn’t use the code formatting tool i can’t tell if your repeater template is right, are you missing a closing /div ?Send me your link using the contact form on the demo site.
The topic ‘Hide button if no extra posts to load’ is closed to new replies.