Home › Forums › Front-end Issues › Get field from related post type in user page › Reply To: Get field from related post type in user page
Assuming that the schedule
field is part of the Event
post type, you can grab the schedule this way:
<?php
$event_id = get_field( 'the_users_event_field_name' );
if ( is_object( $event_id ) ) {
$event_id = $event_id->ID;
}
get_field( 'the_schedule_field_name' , $event_id );
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.