WordPress functions not working with Ajax call

Posted in: Newspaper
Post count: 12

Hi,

I want to show Category Badges on the posts on specific pages only. I do a check with is_page() function and its working fine. But when i click on Load More button(I will perform Ajax call), then this function is not working. Can you please tell me if this is the bug or i am missing something? Please check the URL for more understanding: https://centsai.com/experts-blog/

Category badges are showing on this page, when you will click on Load More button then no badge will show.

Thanks,
Avtar

Post count: 20688

Hi,

I do not know exactly how are you implementing this, and if modifications have been done to the theme. By default the category tags if enabled in theme panel – https://www.screencast.com/t/Vc3mKR5JM are displayed properly on all the modules. In your case it seems the category tag is not present on the modules – https://www.screencast.com/t/hhJ22INhcJnhttps://www.screencast.com/t/4bH8HfqhMI2w
This is the module structure by default – https://www.screencast.com/t/ajOvKhwuG
If you would like to hide the category tag by page, you could use some css and based on the page ID hide them on all the page – https://www.screencast.com/t/PQnuKPxlPxF or by specific module in that page – https://www.screencast.com/t/9JBjdfRqlg

Thanks

Post count: 12

Hi,

Thanks for reply. I will make changes and use the css trick. I will be back if any query.

Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.