How to use “Code snippet” to show posts from 1 category on href click?
-
Hi,
I have 3 image DIV as category boxes on top of my blog list page. I want to have the ability to click a category image and show only posts from that category?1. How do i attach this Code snippet’s functionality to be triggered on image href click? I tried this in a hook. The link is showing but its not executing the function:
<div> this is a <a href="[xyz-ips snippet='test-xyz-php']">link</a></div>
–> The snippet is taken from my old question.
https://www.ads-software.com/support/topic/category-term-grid-below-header/2. How to use “Code snippet” to show those on the same blog list front page instead of opening the “category page” (list of posts from that category)?
I have created the PHP code snippet using this:
https://generatepress.com/forums/topic/show-specific-post-category-on-home/Thanks for your help on this question:
https://www.ads-software.com/support/topic/category-term-grid-below-header/This new question is related to the old question.
Thanks,
JatinThe page I need help with: [log in to see the link]
- The topic ‘How to use “Code snippet” to show posts from 1 category on href click?’ is closed to new replies.