Show specific category and/or ID first

Forums › Forums › Search & Filter Pro › Show specific category and/or ID first

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

    Hi,

    I have a search form which searches everything in the website. I would like to output the results with products first, then all other search results.

    Is this possible with the PRO version? If so, please could you point me in the right direction.

    Many thanks

    Trevor
    #182345

    Whilst our plugin settings allow you to sort by Post Type, that might not put products first. Instead, I think you would need to refer to the WordPress Codex for sorting WP_Query and use our Edit Query Arguments filter:

    https://searchandfilter.com/documentation/action-filter-reference/#edit-query-arguments

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.