You’ll need something like this in single-event.php:
Both output the field value. Alternatively, you could do:
// in functions.php:
$org = get_field('instructor_organization', $post_id);
// then in single-event.php:
// assuming you're in the Loop (i.e. $post variable is available)
Obviously the first way is easier, but the second gives you an idea of how variables can be passed to functions.
Thanks for your responses. Sorry for not responding to you sooner. Now, I actually had it done in a different way. But I am going to try your code suggestions to see how they work in case of a future need. Thanks again.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users