Hi @shinchaya
We were in the middle of testing the plugin for WordPress 7.0 because I am not sure if you saw it the plugin compatibility was only with 6.8 when you tested on 7.0 but now we have updated please try and let us know since we value your feedback.
To reiterate, I am currently facing this issue with WordPress 7.0.
I am using the sample code you provided exactly as is, but it doesn’t work.
<?php
// Standard ACF repeater usage
if (have_rows('team_members')) :
while (have_rows('team_members')) : the_row();
$name = get_sub_field('name');
$photo = get_sub_field('photo');
echo '<div class="member">';
echo '<h3>' . esc_html($name) . '</h3>';
if ($photo) {
echo wp_get_attachment_image($photo, 'medium');
}
echo '</div>';
endwhile;
endif;
?>
The values entered in the following code were also correct.
What am I doing wrong?
<?php
global $post;
echo '<pre>Post ID: ' . get_the_ID() . '</pre>';
echo '<pre>team_members raw: ';
var_dump(get_field('team_members'));
echo '</pre>';
?>
-
This reply was modified 3 days, 10 hours ago by
shinchaya.