Forums Forums Search & Filter Pro Post Meta Search Value to existing search

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Trevor
    #183423

    Did you try setting this in the Posts settings tab, where you can select by Meta Key (the default action of this is to exclude any posts that have no value in this key).

    Was the custom field made in ACF? If so, please see this post:

    https://support.searchandfilter.com/forums/topic/acf-field-filter-always-displays-0-results/#post-182892

    Anonymous
    #183439

    This field is being registered in the in the theme’s PHP file, not ACF.

    I don’t want this always to be active is my problem. I would like to only have it filtered and sorted descending by post count when I pass a URL query string value (or alternatively click a button on the search bar that would in turn add the query string to the URL). Would wind up having to create an entirely new Search with new template and all to get this functionality to work?

    Thanks again! I know this is very specific but it seems like its ALMOST there and it would be amazing to have it working properly.

    Trevor
    #183450

    If you add the Sort order element to the form, that allows you to Sort by Post Meta. You could then see what that adds to the URL?

    Anonymous
    #183506

    Great idea! I’ll give it a shot and post back how it goes. Thank you.

    Anonymous
    #183540

    That worked! This is EXACTLY what I was looking for. Thanks again. You guys do an awesome job with support.

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