Custom fields not displaying

Forums › Forums › Search & Filter Pro › Custom fields not displaying

Viewing 3 posts – 11 through 13 (of 13 total)
  • Trevor
    #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?)

    Anonymous
    #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
    #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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.