Tell us what you are trying to do? Sort a view by a custom taxonomy.
Is there any documentation that you are following? No.
Is there a similar example that we can see? No.
What is the link to your site? hidden link
I'm trying to add a sorting option to sort my team members by the custom taxonomy "Team Member Type" however I'm not sure how or if I can add that sorting option at all.
Thank you for your help!
Hi,
Thank you for contacting us and I'd be happy to assist.
Toolset and WordPress don't support ordering/sorting the results by taxonomy.
To achieve this you'll need some workaround. For example, you can add a new custom field named 'Team Member Type' and make sure that the selected 'Team Member Type' taxonomy term name is also stored in this new custom field as a value. As a result, you'll be able to order/sort the results using this custom field.
regards,
Waqar
Hi Waqar,
Thank you for your help! I tried adding Team Member Type as a custom field for Team Members instead and did not see the options to add that sorting option to my view for "All Team Members." (See Screenshot) Is it because I have this custom field set as checkboxes? Or does that matter?
Thank you!
Thanks for writing back and your understanding is correct.
The data is stored in a checkboxes type custom field in serialized format, which is why it can be used for ordering or sorting of results.
If you'll change that custom field to the 'Select' type, it will work.
My issue is resolved now. Thank you!