Home › Forums › Front-end Issues › Extracting Post Object data from within a Repeater › Reply To: Extracting Post Object data from within a Repeater
What do you want to display? You can just use the post object as is like this:
<?php
$postobject = get_sub_field('nameofyourpostobjectdropdownfield');
$postobject->post_title //post title
$postURL = get_permalink($postobject->ID); //URL
apply_filters('the_content', $postobject->post_content); //The post content formatted
$postdate->post_date //post publish date
?>
And there’s more if you do a print_r($postobject); and take a look 🙂
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.