Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Custom fields not displaying

Viewing 3 posts - 11 through 13 (of 13 total)
  • Trevor Moderator
    #45715

    Hi Yvonne

    As promised, you would need args like this:

    $args = array(
      'post_type' => 'resources',
      'post_status' => 'publish',
      'posts_per_page' => '10',
      'search_filter_id' => '456'
    );

    Not sure if it actually needs the quotes around the 456 (is that the ID number for your form?)

    Yvonne
    #46224

    Hi Trevor,

    Thank you for the code.

    I managed to get the keyword search form portion working now. I can search for keyword terms and return the expected results with the fields displaying now.

    So I went ahead and added some extra fields to the search form, such as Tags, Categories and a date picker. Unfortunately, the search form is not picking up those fields, meaning the search form is not displaying the count for those beside its label. And it is not displaying any results when using those fields to search.

    I have Relevanssi enabled.

    How do I get the category and tag fields to display in my results and to display the count on the search form?

    Trevor Moderator
    #46238

    Two issues I think. If the fields are ACF field make sure the meta name in the form design in the select box where you picked the field does NOT start with an underscore.

    The display of the fields in the results is down to your theme. You have to add them to the theme template file.

Viewing 3 posts - 11 through 13 (of 13 total)

The topic ‘Custom fields not displaying’ is closed to new replies.