Forums Forums Search & Filter Pro Could multiple values separated by a separator in an ACF field be searchable

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #232775

    Hello,

    Could multiple values separated by a separator in an ACF field be splitted in individual values that could be searchable for a given criterion ?

    I don’t know whether I am clear and legible here, so I will provide you with an example of what I’d like to achieve.

    Example :
    I have an ACF metadata field named “Issues” in which values could be multiple and separated by a semi-colon, e.g. “Aging ; Environment ; Immigration”, what I would like to do is being able to search those values individually by making use of a multiselect combobox.
    If another article has for this ACF metadata field “Issues” this value : “Aging ; Education”, then the results of a search made on Issues with the single value “Education” should return the latter but a search made on Issues with the values : “Aging” and “Education” should return both articles.

    I didn’t find a way to achieve this up to now and I truly don’t know whether this behaviour has been implemented by S&F.

    Thank you for you answers.

    Best regards,
    Emilien.

    Trevor
    #232776

    They cannot no. But, using ACF, you can set the field up (depending on the data/field type) to allow multiple values, and ACF will store these as an array, which can be searched as you want.

    Anonymous
    #233308
    This reply has been marked as private.
    Trevor
    #233310

    Hi Emlien

    The importing of external data into an ACF custom field that has multi value settings is not something we would cover with the scope of our support.

    Importing as semi-colon separated values will not work. Assuming that you are using an ACF filed that accepts multiple values, your import script would need to convert your data to an array that meets the ACF standard.

    For example, with WP ALL Import, I think you would need their ACF import addon.

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