Hello guys !
I’ve got a problem with the repater field that doesn’t show up in this page and i don’t understant why. When i call normal field it works, here is my code :
<?php query_posts(array('showposts' => 6,'category_name' => 'une')); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php if( have_rows('evenement') ): while ( have_rows('evenement') ) : the_row(); ?>
<?php the_sub_field('date_debut_evenement');?>
<?php endwhile; else: ?><?php endif; ?>
<?php endwhile; else: ?><?php endif; ?>
Thanks for your help !
Ben
I found the solution by changing the query with this :
<?php
$query = new WP_Query( array(
'showposts' => 6,
'category_name' => 'une',
'post_type'=> array('post','spectacles','photos','videos')
) );
?>
<?php if($query->have_posts()) : while ($query->have_posts() ) : $query->the_post();?>