ACF post object
-
Hi,
I’m developing a custom theme with ACF and I’ve a question:
Via ACF I’ve made a flexible content block where the client can select a review in the backend of the site to display in on the front-end.
Now I already have can display the_title & the_content but I also need the person’s name and the star-rating.
How can I display this? Example below:
<?php if( $post_objects ): ?> <?php $delay_count = 0; ?> <?php foreach( $post_objects as $post):?> <?php setup_postdata($post); ?> <div class="col-10 col-sm-10 col-md-8 col-lg-8" data-aos="fade-up" data-aos-delay="<?php echo $delay_count * 200; ?>"> <?php echo the_title(); ?> <?php echo the_content(); ?> </div> <?php $delay_count++; ?> <?php endforeach; ?> <?php wp_reset_postdata(); ?> <?php endif; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘ACF post object’ is closed to new replies.