Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter mdr21

    (@mdr21)

    Sorry, the subcats should be indented

    > Homes (Top Category)
    > > Red House
    > > > Red House Price
    > > > Red House Size
    > >Green House
    > > > Green house price
    > > > Green house Size

Viewing 2 replies - 1 through 2 (of 2 total)