Home › Forums › Front-end Issues › Include meta added via relational post object in an existing query function › Reply To: Include meta added via relational post object in an existing query function
Thank you, I do this for a couple of reasons, one of them being that I feel ACF is the most valuable WP plugin that exists and will become more so with the bad direction I feel that WP is going with their block editor.
Anyway. Remove the line of code I added before and replace it with this
if ($query->get('organizer')) {
var_dump($query->get('organizer')); echo '<br />';
}
echo '<pre>'; print_r($query); die;
and post whatever it is that outputs. There’s going to be a long nested query, but I need to know what’s in it.
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.