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

  • Hi i’d like to ask why is that there’s this phrase “hello world!” that concatenates to the title of my post? Thank you. What could be the reason?
    Here’s my code:

    <?php while (has_sub_field('post_slideshow')) { ?>
    
    	<?php $postObjects = get_sub_field('slide');
    	if($postObjects){
    		foreach($postObjects as $post){
    		setup_postdata($post);
    		the_post_thumbnail();
    		the_title();
    		}
    	wp_reset_postdata();
    	}
    ?>
    	
    	<?php echo $postObject->$post_title; ?>
    	
    	
    <?php } ?>