Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Relevanssi custom ordering

Viewing 2 posts - 1 through 2 (of 2 total)
  • realityhouse
    #211417

    Hi there,

    We have added a filter to functions.php within our theme to change the ordering by ‘post type’ on Relevanssi, using the methods outlined below (we have tried both approaches)

    https://www.relevanssi.com/user-manual/relevanssi_hits_filter/

    But sadly it’s not working, do you know if that may have anything to do with the fact that we are using Relevanssi in conjunction with your plugin? Or anything else? Basically any advice would be super, bottom line is we would like to use the relevance weighting / logic of Relevanssi, but would like pages to be the priority result, so it goes Pages, Posts, People (custom post type).

    Many thanks for your help,
    TJ

    Trevor Moderator
    #211446

    We use Relevanssi only to fetch a list of matching Post IDs (if required ordered by Relevance), but all other settings are not used (such as the one you tried).

    You may be able to do something similar with this filter:

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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.