The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Order categories based on parent category (3 posts)

  1. damshaw
    Posted 4 years ago #

    Hey, hope you are all well!

    I have seem many posts that are similar to this but not exactly the same.

    I am trying to order categories based on their parent category. If you look at my website http://micaaustralia.com.au/dev/category/products/1brand/berri-estates/ you see there is a Wine which has three sub-categories.

    My parent categories are Brand, Variety and Region and I want all sub-categories to display in that order.

    How can I achieve this?

  2. damshaw
    Posted 4 years ago #

    just to add some more info...

    I know it is possible to sort my parent categories and sort my sub-categories...

    What does not seem possible is to order sub-categories based of the parent order...

    any help would be great!

  3. damshaw
    Posted 4 years ago #

    Found my answer here http://wordpress.org/support/topic/sorting-categories-returned-by-the_category-by-parent-category

    My not be the best way but it works!

    [please use the pastebin for any code over 10 lines - see forum guidelines]

Topic Closed

This topic has been closed to new replies.

About this Topic