Support

Account

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 🙂