I have a View that filters by a Taxonomy and I have created a custom term field "category-order" for that taxonomy. I'd like to order this taxonomy on the front-end filter, but it seems there's no option to order by a custom term field?
Hello. Thank you for contacting the Toolset support.
As I understand, you have added the custom term field to your taxonomy and you are displaying this taxonomy as frontend filter with the view.
But you want to display the terms with the taxonomy frontend filter in the specific order you added to term custom field. If this is correct - Can you please share problem URL where you added your view as well as admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Thank. So it seems if I have the View set to "Show only available options for each input" then it works in the beginning but once a filter is selected then it returns to the default order. But if I have it set to "Always show all values for inputs" then it works. I guess I can keep it set to this but is there no way to have it work in both situations?
Ok, I can use that option. But now I see one other issue, when that code is activated the Target Grade and Instrument Families shortcodes within the view (not the filter) suddenly disappear:
hidden link
Until you actually click on a filter, then they appear.
Actually I just decided to delete and recreate the categories in the order I need, this solution was not quite working. But in the future are their plans to allow ordering by taxonomy custom term? That would be quite helpful.
I'll discuss the feature to sort term by custom term field for the taxonomy filter.
As you know, currently there is no other option/feature available. Either you have to go with the code I shared or drop the idea to sort terms by custom term field.