• Hi,

    I have a field ‘skills’ which contains multiple values, i.e. ‘admin’, ‘marketing’, ‘writing’. How do I list all users with the ‘writing’ skill? I tried [userlist meta_key=”skills” meta_value=”writing”] and it didn’t work.

    Maybe someone can advise me in the author’s absence.

    Thanks,
    rt.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    That is not supported. See the faq for an example of how to use filters to achieve a multi key query. I won’t have access to internet for a while so that’s the best I can do for now. Good luck.

    Thread Starter rtandoh

    (@rtandoh)

    That is a shame and I couldn’t find anything applicable in the FAQs but thank you for your prompt response – it saved me spending too much time on it.

    rt.

    Plugin Author HelgaTheViking

    (@helgatheviking)

    There isn’t anything exact in the faq but you can filter ′sul_user_query_args′ to write a custom meta query. There is a link to the codex that shows what the custom args need to look like.
    https://codex.www.ads-software.com/Class_Reference/WP_User_Query#parameters

    It isn’t a terrible idea and I will consider adding support for this but it would not be until June.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Field with multiple values’ is closed to new replies.