• Resolved michon_ste

    (@michon_ste)


    Is it possible to order a taxonomy, in the admin, by 2 fields?

    I’m trying to achieve the same functionality as if I had clicked on a sort by link at the top of each taxonomy list column (name, description, slug, count) and then still be able to sort by SCPO.

    In my case I’d like to order firstly by the taxonomy description then my the SCPO order. The description in my taxonomy simply has the name of another taxonomy term in. I simply want to group all terms with same description together then alter the ordering within that grouping. So the list should be:
    – name / description
    – term_3 / another_tax_term_1
    – term_1 / another_tax_term_1
    – term_5 / another_tax_term_1
    – term_2 / another_tax_term_2
    – term_6 / another_tax_term_2
    – term_4 / another_tax_term_2
    – term_7 / another_tax_term_3
    – term_8 / another_tax_term_3

    I’ve attempted to use the get_terms_args and get_terms_orderby filters but they don’t work if SCPO plugin is active.
    WP_Term_Query implies that more than one field can be used to order taxonomies:
    ‘orderby’ (string) Field(s) to order terms by.

    Cheers

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

    (@mplusb)

    Hello @michon_ste,

    Thank you for reaching out!
    Unfortunately this is not possible ?? you can only do it manually.

    Warmly,
    Mihaela

    Thread Starter michon_ste

    (@michon_ste)

    Thanks @mplusb for the reply.
    I’ll have to try another approach.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Admin Taxonomy list orderby 2 fileds’ is closed to new replies.