Site icon Hip-Hop Website Design and Development

I have two custome post type, When I use ACF PRO reperater with post object I cant Get post data -> Please help [closed]

single-custom-post-1.php

This is part of the code from my single template for custom post type 1
I cant get the post title from custom post type 2.

******* What am I doing wrong? ******

   <div class="trip-detail-tile tile-brief-itinerary">
  <h3 class="titleSize-lg textWeight-medium padding-b-20">FULL ITINERARY</h3>
    <?php 
      the_field('full_itinerary');
    ?>
   <div class="trip-day-item">
       <h4 class="trip-title">
          Day 1: <span class="textColor-yellowLightest">
            <?php $postData = get_sub_field('dani'); 
                  $data =  $postData->post_title;
            ?>
                </span>
       </h4>
   </div>
                  
  <pre>
     <?php print_r($data); ?>
 </pre>
</div>

TNX


update code

 <?php 
                if( have_rows('full_itinerary') ) :
                while( have_rows('full_itinerary') ) : the_row();
                ?>
                <div class="trip-day-item">
                     
                    <h4 class="trip-title">
                        Day <?php $plus = 1; echo $plus++; ?>: 
                    <span class="textColor-yellowLightest">
                           <?php $dani = get_sub_field('dani');
                                echo $dani->post_title;
                            ?>
                    </span>
                    </h4>
                    <div class="trip-content">
                        
                            <div class="trip-img-wrap">
                           
                            </div>
                            <div class="trip-txt">
                                
                            
                            </div>
                   
                    </div>
                    <pre>
                        <?php print_r($dani); ?>
                    </pre>
                </div>
               
              <?php endwhile; endif; ?>