How to sort Premium Post first ?

Forums › Forums › Search & Filter Pro › How to sort Premium Post first ?

Viewing 3 posts – 1 through 3 (of 3 total)
  • Anonymous
    #49155

    Hello, Thank you for this amazing plugin.

    I am using wordpress 4.5.3, Last versions of Search and filter pro and Relevanssi Pro.

    I created a form id : ‘4913’ and I displayed the results using shortcode, and I past the result.php in 4913.php.

    This form is searching inside 2 CPT :

    – School (700 posts)
    – Premium School (49 posts)

    I want to order the output Making the premium schools always show first. But when I use Relevanssi pro (Weight) I think that the pagination doesnt allow to sort all the premium first. But only those inside the page itself.

    I am wondering if there is a way to change the $query inside the result.php or inside the functions letting the query sort first all the premium school and then the normal schools.

    Thank you very much for your help

    Anonymous
    #49249

    It would be nice to see that I am treated as all other customers who need support and get answer way before me while they ask way after me..

    Thank you.

    Trevor
    #49303

    You can attach weightings to meta/taxonomy in Relevanssi. Set the one you want first to 1 and all others to 0 and it should sort the order as you want.

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