"Order Terms By" Doesn't seem to be working

Forums › Forums › Search & Filter Pro › "Order Terms By" Doesn't seem to be working

Viewing 6 posts – 1 through 6 (of 6 total)
  • Anonymous
    #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.

    Admin Settings
    Non-ordered Terms
    Sorting by ID instead of Name

    Anonymous
    #38709

    Here are the actual images, sorry about that:

    Admin Section

    Non-ordered Items

    Sorting by ID instead of Name

    Anonymous
    #38712

    Sorry, maybe just link to them instead

    Admin Section

    Non-Ordered Items

    Sorting by ID instead of Name

    Anonymous
    #38713
    Ross Moderator
    #38809

    Hi 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

    Anonymous
    #38975

    Yes, our theme had a add_filter( ‘get_terms_orderby’, ‘pa_reorder_front_end_tax’ ); in it. I commented it out and it is all working now.

    Thanks for the help!

Viewing 6 posts – 1 through 6 (of 6 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.