Support Forums

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

Forums Forums Search & Filter Pro CPT results ordering by custom taxonomy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anita
    #221003

    Hi, Could you please point me in the right direction how to order S&F results by a custom taxonomy? I use the Shortcode Display Result Method and a custom results.php (“4455.php” in theme/searchandfilter/). All filters work fine, but the ordering needs to change. Think I need a custom function for that? Thanks in advance!

    Trevor Moderator
    #221070

    Generally, we allow searching by Custom Fields (where the meta value is a single value), but taxonomies are stored as arrays in WordPress, so that makes it difficult.

    You might need to set custom sort (sortby) arguments in this filter:

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

    You would need to work out the logic yourself, or hire a coder, but I think it could be done this way.

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

You must be logged in to reply to this topic.