Site logo

Archived topic

Show posts in sidebar based on category of current post

1 reply · Started by kunal on December 19, 2018

Viewing posts 1–2 of 2

This I'm hoping is an easier question.

Let's say I'm reading a post from a particular category, CatA.

In the sidebar, how do I show other posts (Ie, using WP Show Posts plugin), to show only other posts also from CatA?

However, if I review a post from another category, CatB, then I only want to show posts from CatB in the sidebar.

Thus, I cannot use a global WP Show Posts script in the sidebar under widgets, but it has to be customized to take the current category of the post that is being viewed, then calling the WP Show Posts script.

Ideally, I would like to use a WP Show Posts script, because it's easy to set up and I like the output of the script (ie the thumbnail photo, the excerpt length, the columns)

Thanks!
Kunal

Hi Kunal,

You can probably try a combination of WP Show Posts and Content Aware Sidebars plugins to achieve this without a custom solution.

I'm not sure if you can create a solution like this using WPSP but it's worth opening a topic in its forum as it's a separate plugin. I personally think it's a really cool idea :)

Please do keep in mind that this is still a forum for GP related issues.

https://stackoverflow.com is awesome if you haven't found it yet :)

Thanks for your understanding!

This archived topic is closed to new replies.