Button disables after category load
-
Hi,
I’m doing a few ajax queries on my dev site using the plugin but have an issue i cannot get around.
I use the short code to generate the load more posts functionality/button. I have a list of categories which I print out to the page. Using Jquery and my own function i update the list of posts on my homepage depending on what category link a user clicks on. This works great. I then capture the category id and add it to my shortcode ajax-load-more button category=””. This works fine and the buttons generates and loads more posts of that category if there are any and then disables the button once no more are available.
The issue occurs when I then go to my list of category links and click one. This loads the posts associated with that category BUT the ajax-load-more button is disabled and cannot be clicked (has class done added to it etc). Not sure how I can get around this. Any advice?
Thank you.
- The topic ‘Button disables after category load’ is closed to new replies.