Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    Are you wanting those category linked images to filter the Blog to just show Posts within that category ?

    Thread Starter groverjatin

    (@groverjatin)

    Yes, exactly. Thanks for putting this in one line. I read your previous posts. But I dont want to buy any plugin for this ?? WP-show-post FREE version doesnt have this facility

    Unfortunately if you’re not going to use a plugin, that would require Custom Development that can Ajax filter the post content. The alternative is to simply hardcode the links to the specific category for each of your links and have it navigate to the specific Archive.

    Thread Starter groverjatin

    (@groverjatin)

    OK. But any idea why is this code from a plugin not working ?
    <div> this is a <a href="[xyz-ips snippet='test-xyz-php']">link</a></div>
    Plugin name: XYz PHP code. This plugin is a code snippet plugin to filter all posts as per categories.
    I posted this in my original question here.

    Thanks.

    That depends on what that shortcode is trying to do – if its simply returning a link then there should be no issue with it being added to the href. If however it is doing something else then it probably won’t work as wordpress will kick it out for being invalid HTML.

    Does the shortcode work if you add it directly to your post content ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to use “Code snippet” to show posts from 1 category on href click?’ is closed to new replies.