Load More button isn't disabled when posts returned is less than posts_per_page
-
Thanks for the great plugin. On https://artofchange.is/ I’m using it to load 9 additional posts at a time at the bottom of the page. On the first click, only 8 posts are returned but I have to click the button one additional time to get the “done” class.
Shortcode:
<?php echo do_shortcode('[ajax_load_more post_type="post" meta_key="is_featured" meta_value="no" posts_per_page="9" pause="true" scroll="false" button_label="view more posts"]'); ?>
This sounds like a similar issue to SternsbergerM’s thread started a week ago, but I *think* from reading your comments on that thread the existing functionality is that if the number of posts returned is less than the posts_per_page param, then the done class should be added to the button without an additional click.
Thanks!
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Load More button isn't disabled when posts returned is less than posts_per_page’ is closed to new replies.