sven

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • sven
    Participant

    So, even setting the ‘EventDisplay’ to ‘costum’ does not exactly work.

    sven
    Participant

    No I do not as stated in the pastebin.

    I just need the correct field and value for the array to make the foreach-loop work, such as get_posts(‘eventDisplay’ => ‘all’), simply something with series. I find the documentation not complete on this.

    As stated:

    <? $args = array(
                    'post_type' => 'tribe_events',
                    'post_parent' => $event_id,
                    'order' => ASC,
                    'eventDisplay' => 'all'
                );
    
                $recurring_series = new WP_Query( $args );
                if( $recurring_series->have_posts() ) { ?>
    
                    <div class="row">
                        <div class="col-xs-12">
                            <h3 class="tribe-events--event-single-more-dates">Weitere Termine:</h3>
                            <div class="tribe-events--event-single-more-dates-list">                            
                                <?   
                                while( $recurring_series->have_posts() ) { $recurring_series->the_post(); ?>
                                    <span class="tribe-events--event-single-date-single">
                                        <? echo tribe_get_start_date(); ?>
                                    </span>
                                <? } ?>
                            </div>
                        </div>
                    </div>
                    <? } ?>

    Only seems to work for future events, not for past events. I want to display ALL events of a recurring_event, not caring if future or past.

    sven
    Participant

    Sorry, old pastebin, here is the current script:
    http://pastebin.com/bQarcxwu

Viewing 3 posts - 1 through 3 (of 3 total)