WordPress.org

Ready to get started?Download WordPress

Forums

Need a DISPLAY ORDER for Categories (6 posts)

  1. nycphotography
    Member
    Posted 4 years ago #

    I can't believe this hasn't come up years ago... but in any taxonomy system, you need to be able to sort things in an arbitrary order that is not by alphabet, nor by ID.

    Need to add a "display sequence" string to each category.

    Thanks,
    John

  2. MichaelH
    Member
    Posted 4 years ago #

    What template tag are you using to display the taxonomy?

  3. ancawonka
    Member
    Posted 4 years ago #

    +1 here.

  4. MichaelH
    Member
    Posted 4 years ago #

    Okay missed what you were saying. Add a display order, such as what's used for Pages, to taxonomies. There is a term_order column in the terms table and wp_get_object_terms supports and orderby=term_order. So just need a UI that allows that field to be populated.

  5. nycphotography
    Member
    Posted 4 years ago #

    I can update data direct from sql, I just don't want to edit my templates.

    This would require template changes?

  6. MichaelH
    Member
    Posted 4 years ago #

    Yes you'd need to change the template to use wp_get_object_terms.

Topic Closed

This topic has been closed to new replies.

About this Topic