I have an Issues in my wordpress website. I Create Custom theme site. I added Load More button in blog post page but currently not show load more button in my site. Site link mention in top.
Please help out…
The page I need help with: [log in to see the link]
Exactly how and where did you add this button? There could be an error in how this was accomplished. Or caching could be at play. You may have done everything right, but your server is serving old, cached content. If you have any server side caching active, the caches should be flushed.
I’ve checked your blog page and didn’t find any “Load More” button there. If you’ve already hidden or removed it, please restore it so we can check and assist you.
It looks like your Load More button isn’t showing because the $blog_query variable might not be properly set or initialized. This part of your code relies on $blog_query->max_num_pages being greater than 1. If this variable is empty, missing, or set elsewhere, the button won’t appear.
Please ensure that $blog_query is defined in the same template file and is using WP_Query. A typical example would be:
From what you’ve shared, it’s tricky to pinpoint the exact issue without seeing the full code in context. At this point, I recommend using an AI tool that can help you review the full code, or getting in touch with a developer who can check the entire setup of your theme and see what might be going wrong.
They’ll be able to look at the interactions between different template files and scripts, which is hard to do without complete access.
According to the forum guidelines, it is not desired to share such contact information. I would recommend that you make the source code available on GitHub or Gists, for example.