M
M
madc0de2017-10-19 01:04:41
WordPress
madc0de, 2017-10-19 01:04:41

How to display posts in which, when adding, a user is selected in an additional field through the ACF plugin for WP?

59e7cf00ade69229781055.png
When adding a post, through an additional field added using the Advanced custom field plugin, we can select one of the users.
59e7cf633e199767583647.png
How can I display all posts where a given user has been selected?
Please don't tell me to read the documentation, I've been sitting with it for 2 days and I can't pull out the posts((I don't understand(
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neatek, 2017-10-19
@neatek

Better yet, here https://wp-kama.ru/function/wp_query#parametry-pro...
Look through https://ru.wordpress.org/plugins/post-meta-inspector/ (in the admin panel on the edit page post, at the very bottom, after activating the plugin)
which meta fields ACF added to your post(s)
And just do a meta_query

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question