[Resolved] Custom order for taxonomy fields in view filter
This thread is resolved. Here is a description of the problem and solution.
Problem:
Custom order for taxonomy fields in view filter
Solution:
There is no native way to sort terms by custom defined order using the custom field you created with taxonomy filter you added to your block view.
You may require custom code or another plugin that order the term like "Custom Taxonomy Order"
I am using the block editor to build a view, showing posts and using a taxonomy filter. Toolset is offering under "field setting", a kind of field ordering based on name, slug, ..... But all this stuff is not useful for me, because I need a custom order for the taxonomy fields in the filter.
I defined a term field for this taxonomy, which is a number, hoping, that I can use the term field to sort / order the taxonomy fields. But unfortunatly, this term field does not appear in the filter field settings. Is there a way of using term fields for ordering taxonomy fields?
Is there any documentation that you are following?
Documentation on block building, but this case is not mentioned.
Is there a similar example that we can see?
What is the link to your site? ... no, I just tried and erased the contents of page ... see screenshoot of back end ....
Hello. Thank you for contacting the Toolset support.
As I understand, you created a custom term field that holds the order of the taxonomy terms and you want to display the terms in that vary defined order with the taxonomy filter you added to your block view.
If this is correct, there is no native way to sort terms by custom defined order using the custom field you created with taxonomy filter you added to your block view.
If you are not sure how to do it, please share problem URL where you added the view as well as temporary access details and I would be happy to share you the solution you are looking for.
*** 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.
In this exchange, a plugin wp-term-order is mentioned by the supporter of Toolset, which should have the same effect as the custom code. Do you have any experience with this plugin? Advantages / disadvantages of this plugin vs. the custom code you are proposing?
I tested yesterday the plugin wp-term-order. It works, but the handling is not very convenient. So I tested other plugins, some of them not working. The one, which I selected now, is
"Custom Taxonomy Order"
hidden link
which works really fine. So I would prefer for the moment to stay with this solution rather than installing the pre-get custom code, if you agree.
Many thanks for your kind support, have a good day!