Support Forums

Hey there, it looks like you've been redirected from designsandcode.com - as you can see we have a new home - read more

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

Forums Forums Search & Filter Pro Different sort order for different keywords

Viewing 2 posts - 1 through 2 (of 2 total)
  • Andrzej Jacukowicz
    #117033

    Is it possible to display results using different key for each keywords?
    I sort search results by Meta Key (in custom fields).

    For example if “entry 1” has weight 100 in custom field CATS, but only 5 on custom field DOGS, is it possible to sort by these values when users type Cats or Dogs in search form?

    Thank you for your help! Best regards,
    AJ

    Trevor Moderator
    #117143

    My guess is you might be able to use the Edit Query Arguments filter to conditionally alter the sort order using PHP, but you would need coding skills to do this.

    As always with custom coding, YMMV, and you may find helpful snippets in the forum posted by others by searching for that filter name.

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

You must be logged in to reply to this topic.