Forums › Forums › Search & Filter Pro › "Order Terms By" Doesn't seem to be working
Tagged: ORDER, order terms, sort, sort terms
- This topic has 5 replies, 2 voices, and was last updated 8 years, 8 months ago by Anonymous.
-
Anonymous(Private) March 4, 2016 at 3:41 pm #38708
Hi,
I am using the GUI for the Search & Filter PRO, but it doesn’t seem that the ‘Order terms by’ is working. I have a custom taxonomy set as a Multi-select Combobox, and I have the Order terms by set to Name DESC, but no matter what I change it always orders by the term ID.
Anonymous(Private) March 4, 2016 at 3:46 pm #38713Sorry.. One last try
Admin Section
Non-Ordered Items
Sorting by ID instead of NameRoss Moderator(Private) March 7, 2016 at 10:29 am #38809Hi there
That is odd.
Does this happen with any field you try to use?
I think you have another plugin modifying the dropdowns.
S&F uses the standard WP function get_terms – to get the terms of a taxonomy.
Here we pass in the “order by” stuff – however, there is a WP filter that allows you to modify the order:
https://developer.wordpress.org/reference/hooks/get_terms_orderby/
So if you theme, or any other plugin is using this, then it is probably overwriting the order S&F is trying to use.
I would test on another theme, and also disable other plugins to track down the cause of this.
Thanks
-
AuthorPosts