• Resolved theshae

    (@theshae)


    I have a Hierarchical taxonomy setup. It seems to output the category in the wrong order or at least how can I display it based on the hierarchy?

    it currently outputs the child before the parent

    I’m using the code:

    <Taxonomy category>
      <Term title />
    </Taxonomy>
Viewing 2 replies - 1 through 2 (of 2 total)
  • You’ll notice in the documentation for the taxonomy term loop that the orderby query parameter is the one that’s used to set the order in which terms should be displayed and by default (i.e. if it’s not specified), it’s set to title. So presumably your taxonomy terms are currently being displayed alphabetically. Does adding the query parameter orderby=menu_order give you the order you’re looking for?

    By the way, I thought I’d mention that you might find the Loops & Logic forum to be a better place to get product support in the future. It’s a much more active community than this support in the WordPress plugin repository and there are people with a broader range of skillsets that can help you out with all sorts of things. Hope to see you on the forum!

    Thread Starter theshae

    (@theshae)

    @bentangible got it. thanks for the quick reply. I’ll check the forum next time!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Taxonomy Term Order’ is closed to new replies.