- This topic has 2 replies, 2 voices, and was last updated 8 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Sort results by taxonomy terms
Tagged: sort order, taxonomy, term
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
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.