Custom Sort Order

Forums › Forums › Search & Filter Pro › Custom Sort Order

Tagged: , ,

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #209078

    Hi, I’m using the posts_orderby hook to set a custom order for a post type on other pages but where we use the search default listing and then when it does a search it doesn’t adhere to this order is there any other custom hooks etc to order search results different to what the UI allows?

    Trevor
    #209095

    The Posts settings tab allows some control over sorting, but complex sorting should be done using our https://searchandfilter.com/documentation/action-filter-reference/#edit-query-arguments filter.

    Post Type order type plugins, that use pre_get_posts, will most likely disrupt the correct functioning of our filter.

    Any further replies will be tomorrow, as it is late here in the UK.

Viewing 2 posts – 1 through 2 (of 2 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.