Last posts from current post category

Posted in: Newspaper
Post count: 3

Hello, guys.
For example: I have 3 category – cat1, cat2, cat3.
And I want that [tagDiv] Block widget show last posts in sidebar from current post category.
So when I visit post from cat1, in sidebar [tagDiv] Block widget show last posts from cat1.
When I visit post from cat2, in sidebar [tagDiv] Block widget show last posts from cat2.

How can I do that?

Post count: 7909

Hi,

You can create and set a custom sidebar for each category. The posts from a specific category inherit that custom sidebar.
For example let’s take cat1. You create and set a custom sidebar for it – http://screencast.com/t/ujympPHA0D Then you can add a widget to your custom sidebar and configure it like you wish – http://screencast.com/t/p9dCbxwrY
If cat1 is set as primary category on your post – https://forum.tagdiv.com/primary-category/ then the post inherits that custom sidebar.

Thanks!

Post count: 3

Alin, thank you for fast answer. It solve my problem.

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