Orderby Taxonomy Value

Support MB Frontend Submission Orderby Taxonomy ValueResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35448
    YasmineYasmine
    Participant

    Hi, how do I order the values of a taxonomy in a frontend submission form. I could not find in your documentation.

    Eg I would like year to show in descending order. I tried in custom settings 'order' => DESC and I also tried 'orderby' => 'meta_value', 'order' => 'DESC', but neither worked!

    #35459
    YasmineYasmine
    Participant

    Ok I worked it out. I was putting oder => DESC into custom settings and not query args. You can close this

    #35460
    YasmineYasmine
    Participant

    Although one more related question...

    I have one that has 3 of the same letter followed by a number...
    SDG 1 -
    SDG 2 -
    etc...

    But (even with order => ASC) it shows:
    SDG 1 -
    SDG 10 -
    SDG 11 -
    etc..
    SDG 2 -
    SDG 3 -

    How do I fix this one?

    #35468
    Long NguyenLong Nguyen
    Moderator

    Hi,

    If you have a number with two characters following the letters, you also need to add two characters for all numbers such as

    SDG 01 -
    SDG 02 -
    SDG 10 -
    SDG 11 -

    #35509
    YasmineYasmine
    Participant

    Great thanks - this was not possible for the frontend, but I changed the slugs and orderby slug, and it's all fixed. Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.