Home › Forums › General Issues › Getting relationship field values into selectbox › Reply To: Getting relationship field values into selectbox
Thanks Navid,
The code you posted is something that I have at the moment, yes it lists all of the projects, but the issue is that I can’t figure out what should I add in the WP_Query, tried 'post_type' => array('projects','artists')
but the issue is that that code would list the ‘projects’ posts, and not the related posts.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.