Sort results by taxonomy terms

Forums › Forums › Search & Filter Pro › Sort results by taxonomy terms

Viewing 3 posts – 1 through 3 (of 3 total)
  • Anonymous
    #129843

    Hello,

    Is it possible to sort the search results by taxonomy term? Further, is it possible to give the user the option of sorting by different taxonomy terms? I don’t see an option for it in the Sort Order field.

    For context, you can see what I’m building here: https://evbvd.com/blog/dm-search-test/
    I would like to give the option to sort results by “Ensemble Size” and “Duration” (at least).

    thank you!
    David

    Trevor
    #129928

    I am sorry, it is not possible. To be able to sort on data, it is required that only one value per post can be stored in the database, but Taxonomies are multiple values stored as arrays by WordPress.

    If you have a single term for each post, consider making this a custom field instead (using a plugin like ACF), which can then be sorted.

    Anonymous
    #130462

    Okay. Thanks for the quick reply. I’ll explore the custom field option.

Viewing 3 posts – 1 through 3 (of 3 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.