Hello,
Post from my children/grandchildren categories are showing up in the parent categories and ordered by date. So they will show up before
the current categories post if published later. I don not have each category checked in the post, just the appropriate one.
I just want the current categories post to take precedence. So
House cat has a post, its children/grandchildren have posts. If on the parent ‘House’ category that post should show first.
I am now using the code listed above but like so:
$cat_posts->query(array('category__in' => array($cat),'posts_per_page'=>1,'order'=>DESC));
I now cant have previous links for the subcategory articles though. Is this the completely wrong way to handle a category-based theme.
Thank you for any insight.