Home › Forums › General Issues › How to show a POST_OBJECT title › Reply To: How to show a POST_OBJECT title
Hi @jarv81178
You need to use this code <?php the_title(); ?>
to show the post object title. It should be like this:
if( $post_object ):
echo 'xx';
// override $post
$post = $post_object;
setup_postdata( $post );
the_title();
echo 'Conference Streams: '.get_sub_field('conferencestream');
wp_reset_postdata();
endif;
Also, please make sure that you set the “Select multiple values?” option to “No”.
I hope this helps.
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.