Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
May 28, 2016 at 4:48 am in reply to: Displaying all events that are in the same „series“ as the displayed single even #1120027
sven
ParticipantSo, even setting the ‘EventDisplay’ to ‘costum’ does not exactly work.
May 28, 2016 at 4:41 am in reply to: Displaying all events that are in the same „series“ as the displayed single even #1120026sven
ParticipantNo 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.
May 27, 2016 at 6:06 am in reply to: Costum monthly list going down from current month back to 2009. #1119659sven
ParticipantSorry, old pastebin, here is the current script:
http://pastebin.com/bQarcxwu -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
