Forums Forums Search & Filter Pro Simple search boxes for ACF fields

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #183645

    I wanted to create a search form that has two search boxes.

    Is it possible to have a search box only search a specific ACF field?

    Eg
    search box 1 to search surname (ACF field) only
    search box 2 to search age (ACF field) only
    Submit

    The result would show if a surname search of Smith with age search of 45 matched.

    Anonymous
    #183648

    So I have tried setting up a Post Meta field then used the Choice setting with a Multi-select option. What I need to do is hide the multi-select option and type into that field, is that possible?

    I used CSS to hide the dropdown options but when typing into the filed on the live form it would hide what I typed.

    Any suggestions at this stage would be helpful.

    Trevor
    #183654

    I am sorry to say that it is not possible to have two search boxes in the way that you describe, and the second idea you tried with a multi-select or combobox will not work either.

    I cannot think of any way to do as you want.

    Anonymous
    #183658

    Can one search box input and then a Post Meta field input match to filter the search?

    Any way to do a search of Post Meta field without it being displayed in the search form?

    Anonymous
    #183660

    Looking at doing a search but not showing Post Meta field options so trying to keep aspects private eg, Surname (don’t want form to show all Post Meta field surnames).

    Trevor
    #183662

    The issue is that our plugin does not perform the text field search. That is handled by WordPress, which itself only searches Post Title, Content and Excerpt. That WordPress search behavior can be modified using plugins, such as Relevanssi (if using Relevanssi, we support that, and some other plugins also seem to work OK with Search & Filter, but not all do). Such plugins would allow the searching of custom fields.

    WordPress then passes a list of matching Post IDs back to Search & Filter, and then, if used, Search & Filter uses any other field choices to further filter the results.

    Anonymous
    #183664

    I read up on Relevanssi though I thought I could just somehow hide Post Meta field data on the search form and have a filed to write it in. I almost got it going with the Multi-select option using CSS display: none.

    Trevor
    #183666

    Sadly, that would not work.

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