How to display a recurrent event only one time in a Loop

Home Forums Welcome! Pre-Sales Questions How to display a recurrent event only one time in a Loop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1362020
    Using Events calendar Pro with Polylang Pro
    Guest

    Hello,
    I made a slider that display my events (categorie : a-la-une ) with WP_query loop
    It works good exept when I use recurent event from one date to another.
    It displays as many events as days.

    Any ideas to fix it ? Here the code of my loop :

    $args = array( 'post_type' => 'tribe_events',
               'posts_per_page' =>-1, 
              'eventDisplay'   => 'custom',
              'tribe_events_cat' => 'a-la-une',
              );
    $the_query = new WP_Query( $args ); ?>
    
              <?php if ( $the_query->have_posts() ) : ?>
    
                <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    ...
    
    #1362550
    Andras
    Keymaster

     

    Hi,

    Thanks for using the Events Calendar!

    Here on the pre-sales forum, I’m afraid we do not provide technical support. I would ask that you take any technical support questions across to our wordpress.org forum – our staff scan it periodically and other community members may also be able to help out.

    If you have purchased a plugin from us, please login and post in the premium forums for that plugin and we can help you out there.

    Thanks again!

    Andras

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How to display a recurrent event only one time in a Loop’ is closed to new replies.