Hi,
I’ve created repeater field according to the solution given in this post, but the output differs between logged-in user and public user.
http://support.advancedcustomfields.com/forums/topic/print-array-value-of-sub-field-in-a-repeater/
Logged-in-view:
https://www.diigo.com/item/image/4rumm/h6ic
Works fine and accomplishes what is expected.
Public view:
https://www.diigo.com/item/image/4rumm/6pyu
The value shows the post’s title instead of the repeater field value
Here is the code that is being used.
<?php
$rows = get_field('theatre');
if($rows)
{ echo '<ul>';
foreach($rows as $row) {
$theatre = $row['theatre_name'];
$theatre = current($theatre);
echo '<li>Theatre name = ' . get_the_title($theatre->ID) . ', Show Time = ' . $row['start_date'] .'</li>';
}
echo '</ul>';
}
?>
Could you please guide me on how to resolve this ?
Thanks,
Sri