Support Forums

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

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Trevor 4 days, 10 hours ago.

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.