Forums Forums Search & Filter Pro Search results sort order by acf field value

Viewing 7 posts - 1 through 7 (of 7 total)
  • Trevor
    #179703

    What is the meta key name of the field as you are using it in the form? If it starts with an underscore, that is the wrong key. Look for the key name without the preceding underscore.

    Also note that any posts that does not have a value in this meta key will be excluded from the results.

    Anonymous
    #179711
    This reply has been marked as private.
    Trevor
    #179715
    This reply has been marked as private.
    Anonymous
    #179717
    This reply has been marked as private.
    Trevor
    #179721

    Everything in the form setup seems OK, and the data on the posts is also OK. As the form is using the ‘As an Archive’ method, it may be that your theme template (category.php) is calling some code from within the theme that is overriding our sort.

    You could test this by making a test page with a test form (a duplicate of the real one, but set to Shortcode method), following this guide:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/

    It will not look pretty, but might give some clues as to what is going on.

    Anonymous
    #179735

    Thanks, i will give it a try! When i have further questions i will let you know.

    Anonymous
    #180000
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)