• Resolved Jess

    (@onmauitime)


    I see that there is a callback for almOnLoad. Is there a way to check the alm query on the page load so that I can hide the button if there are no posts to load BEFORE the load more button is clicked?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jess

    (@onmauitime)

    Instead of checking on load. I ended up checking my initial query and seeing if there were more posts via found_posts. If there were more than the initial posts_per_page I’d show the button.

    Plugin Author Darren Cooney

    (@dcooney)

    Nice work @onmauitime

    The only other way would be to use the Preloaded add-on.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Button on Page Load if no posts’ is closed to new replies.