• Resolved Yasp0

    (@yasp0)


    I am using the plugin with succes! In my situation my blog shows 6 posts, when you click the ‘load more’ it shows 6 more posts etc.

    But some categories have only like only 3 or 4 posts. Then it still shows an ‘active’ button. People think they an click the button so it will show more posts. But there are no more posts…

    Is it possible that the button class is set to ‘done’ in this situation? So set the button class to ‘done’ if total number of posts =< posts_per_page.

    It will increase the usability in my opinion ??

    https://www.ads-software.com/plugins/ajax-load-more/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    This is something i’m trying to work out… Stay tuned ??

    Thread Starter Yasp0

    (@yasp0)

    Thanks! ??

    Plugin Author Darren Cooney

    (@dcooney)

    This is fixed… There was an error with a variable name.

    Update to 2.0.13 when prompted.

    I have updated and this still doesn’t work for me. The button keeps showing up even after it’s cycled through all the posts. When I click it, it loops back and loads posts from the beginning which is confusing.

    I also get zero posts at first, until I hit the Load More button. Here’s the code I’m using:

    <?php echo do_shortcode("[ajax_load_more button_label='Load More' posts_per_page='2' category='daily-feed' pause='true' scroll='false']"); ?>

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic. This topic has been resolved.

    Thread Starter Yasp0

    (@yasp0)

    I updated to the newest version, but this still doesn’t work for me.

    Plugin Author Darren Cooney

    (@dcooney)

    hmmm. I cannot reproduce this in any of my test cases. Is it posisble for you to say a link?

    Thread Starter Yasp0

    (@yasp0)

    It’s fixed.

    I used the shortcode after wp_query and used the offset, this including pause=true caused troubles.

    I removed the wp_query and only used the shortcode, working fine now! My bad ??

    Thanks.

    Still doesn’t work for me.
    V. 2.0.16

    My shortcode is in the template (echo do_shortcode)
    ajax_load_more post_type=”post” category=”case studies” posts_per_page=”15″ scroll=”false” button_label=”Load More”

    Page is https://about.udemy.com/category/case-studies/

    thoughts?

    Plugin Author Darren Cooney

    (@dcooney)

    It is working… See this screenshot.
    cl.ly/image/0G3i382e1x37

    You need to style the .done class in order to make it look like the button is disabled.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Hide 'load more' button when no more posts? (Future request)’ is closed to new replies.