I working on a similar problem for some hours now, I just can’t find the solution.
I tried the code above, only the first repeater element is displayed, followed by weird posts, I dont even know where they came from.
Here’s my code :
// main query
<?php $args = array (‘post_type’ => ‘newslettre’, ‘order’ => ‘DESC’,’posts_per_page’ => ‘1’, );
$my_query= new WP_Query( $args );
while ( $my_query->have_posts() ) : $my_query->the_post();