Forums Forums Search & Filter Pro Reorder based on selection

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #260996

    Hi there!
    Is there any way to change the order of the results page based in a term selected option from a select field? Any conditional code or option to achieve this?

    Hope to hear from you as soon as possible.
    Thank you. All best,

    Trevor
    #261101

    It might be possible, but it would involve some tricky coding on your part, so you would need to be comfortable with coding in PHP. You would need use this filter to re-order the terms:

    https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object

    Anonymous
    #261158
    This reply has been marked as private.
    Trevor
    #261160

    There ARE some shared snippets on the forum. Try this search:

    https://support.searchandfilter.com/forums/search/sf_input_object_pre+function+order/

    If you produce something, but it doesn’t quite work, by all means share the code for us to take a look at. Custom coding doesn’t really fall within the scope of our support, but we will help where we can.

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