WordPress.org

Ready to get started?Download WordPress

Forums

Order Posts by Sub-Categories on Parent Category Page? (1 post)

  1. sincewelastspoke
    Member
    Posted 1 year ago #

    Hi,

    I have a Parent Category(ID=14) which has several sub-categories storing Posts.

    On my Category Page for this Parent Category, I retrieve all my Posts using:
    <?php query_posts('cat=14&orderby=date&order=ASC'); ?>

    However, I would like all Posts from a certain sub-category to appear first when outputting the Posts.

    Is there a way to <?php query_posts('cat=14&orderby=sub-category-id-goes-here&order=ASC'); ?>

    How do I achieve this?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by sincewelastspoke
  • This topic is not resolved
  • WordPress version: 3.4.2

Tags

No tags yet.