Support

Account

Home Forums Add-ons Repeater Field Problema withe repeater item Reply To: Problema withe repeater item

  • @hube2 Thank you but it does not work for me :/

    I try other loop but I have juste 1 post in Front

    An idea ?

    Thank you so much

    <?php $query = new WP_Query( array( 'post_type' => 'nosmarques' ) );                
    if ( $query->have_posts() ) : ?>
    	<?php while ( $query->have_posts() ) : $query->the_post(); ?>   
    		<div id="popup<?php the_ID(); ?>" class="popup_block">
    			<div class="center">
    				<?php the_post_thumbnail(); ?>
    				<span class="h1 dispo"><?php _e( 'Disponibilités', 'territoiredhomme' ); ?></span>
    			</div>
    			<?php if( have_rows('brand_in_shop') ): ?>
    				<ul class="shop-brand globe">
    					<?php while ( have_rows('brand_in_shop') ) : the_row(); ?>   
    						<li class="inline-block">
    						    <?php $post_object = get_sub_field('shop_sales'); ?>
    						    <?php if( $post_object ): ?>
    						 		<?php $post = $post_object; setup_postdata( $post ); ?>
    						 			<a class="uppercase" href="territoiredhomme/nos-boutiques/">
    						                <?php the_title(); ?>
    						            </a>
    						        <?php wp_reset_postdata(); ?>
    						    <?php endif; ?>
    						</li>	 
    					<?php endwhile; ?>	 
    				</ul>
    			<?php endif; ?>		 
    		</div>	
    	<?php endwhile; wp_reset_postdata(); ?>
    	<!-- show pagination here -->
    	<?php else : ?>
    	<!-- show 404 error here -->
    <?php endif; ?>