I was wondering if anyone knew how to have a different “featured post” based on it’s category per category page? For example, if you are on the medical category page, you would see a medical post featured in a special div and so on.
Leave a Reply
You must be logged in to post a comment.
assign the additional category ‘featured’ to the post in the category ‘medical’.
in your category template, use a query with
'category__and' => array(3, 27)
example (assuming ‘medical’ is cat 3, and ‘featured’ is cat 27):