Forums Forums Search & Filter Pro custom field

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #126914

    Hi,

    I would like to ad custom field at my search form.
    How can I do that ?

    Thank you so much

    Céline

    Trevor
    #126915

    assuming that you have the custom field already attached to the post type that you are searching, in the Search & Filter Pro Forum UI, add the Post Meta field type. In the settings for that object, select the type of control that you want and then the met key name. If you have used ACF to make the field, the key name chosen must NOT start with an underscore (applies only to ACF fields). This is the documentation page:

    https://www.designsandcode.com/documentation/search-filter-pro/getting-started/adding-new-fields/

    Anonymous
    #126929

    Thank for your reply.

    this is the reply I get from the other plugin I use :

    “Custom fields are stored using their ID and not the title. So, find them using their POST ID. Note that our Custom Fields are Custom Post Type “acadp_fields”.”

    So it is not a post_meta I have to use I guess.

    Any idea ?

    Thanks

    Trevor
    #126931
    This reply has been marked as private.
    Anonymous
    #126940
    This reply has been marked as private.
    Trevor
    #126951

    OK. So, I see how they make the fields, as posts (of a Custom Post Type acadp_fields). I am not sure why, but that is very odd, and not how custom fields should be made according to the WordPress Codex.

    This means that I do not think that our plugin will see them.

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