Hi There - I tried looking for relevant threads but couldn't find the answer -
I have a repeater and inside it post objects
I need to display the name of the post object as a link on the page inside a list.
The name of the repeater is 'areas_of_practice'
and the name of post object sub field is 'areas-practice'
I tried this code but it didn't produce any results -
$post_objects = get_sub_field('areas-practice');
if( $post_objects ): ?>
<?php endif;<br />
?>
Thanks a lot for all your kind help.
Guy
I have a repeater and inside it post objects
I need to display the name of the post object as a link on the page inside a list.
The name of the repeater is 'areas_of_practice'
and the name of post object sub field is 'areas-practice'
I tried this code but it didn't produce any results -
$post_objects = get_sub_field('areas-practice');
if( $post_objects ): ?>
- <?php foreach( $post_objects as $post_object): ?>
ID); ?>"><?php echo get_the_title($post_object->ID); ?>
Post Object Custom Field: <?php the_sub_field('areas-practice', $post_object->ID); ?>
<?php endforeach; ?>
<?php endif;<br />
?>
Thanks a lot for all your kind help.
Guy