Forum Replies Created
-
AuthorPosts
-
Admin
ParticipantHas anyone else had any problems with this?
Admin
ParticipantI’ve updated to 4.0.7, I noticed there were no changes that could affect this but I still did it.
Any update on this?
Admin
ParticipantVersion 4.0.3 if that matter
Admin
ParticipantI’ve expanded my code snippet slightly to include what those vars are. Start date is a time stamp, and tax query is is the id of the taxonomy filter.
I’ve confirmed commenting those out does nothing.
February 29, 2016 at 11:56 am in reply to: tribe_get_events not showing daily recurring event #1083512Admin
ParticipantNo that doesn’t do anything, both removing or setting it to 0.
January 19, 2016 at 5:57 am in reply to: tribe_get_events query returns past recurring events #1058414Admin
ParticipantThat was it! The query is now working correctly. Thanks for your help!
January 18, 2016 at 4:33 pm in reply to: tribe_get_events query returns past recurring events #1058180Admin
ParticipantHi Brian,
Well, I’m at a loss too. I’ve really got to get this working because it was really the only reason we purchased the Pro version of the events calendar – for the recurring events.So I created a stripped down page template for testing. You will need to enter a username and password to see the front end pages. First go to the home page
http://frostscience.wpengine.com/
u: frostscience
p: 08336c16Then go to this link: http://frostscience.wpengine.com/recurring-event-test/
You will see the past recurring event as the first result “Jan 12, Social Event – Recurring”.
In my query I used ‘tribeHideRecurrence’ => true, which successfully turns off all other instances of the recurring event except for the first one. I will paste the full code from this page below:<?php /** * Template Name: Recurring Event Test * * @package frost */ get_header(); ?> <div class="container-fluid"> <div class="row"> <div class="col-sm-12"> <?php $start_date = date("Y-m-d", strtotime("+1 day")); $end_date = date("Y-m-d", strtotime("+365 day")); $events = tribe_get_events( array( 'posts_per_page' => 10, 'eventDisplay' => 'custom', 'start_date' => $start_date, 'end_date' => $end_date, 'tribeHideRecurrence' => true, ) ); foreach ( $events as $post ) : setup_postdata( $post ); ?> <div> <?php echo tribe_get_start_date( $post->ID, false, 'M j, ' ); ?> <?php echo $post->post_title; ?> </div> <?php endforeach; wp_reset_postdata(); ?> </div> </div> </div> <?php get_footer(); ?>January 18, 2016 at 8:30 am in reply to: tribe_get_events query returns past recurring events #1057915Admin
ParticipantHi Brian,
Thanks again for your help with this. I have attached a new screenshot showing the settings for the recurring event. The event started on January 12th, recurring weekly. So no, it did not have an instance on the 15th.And yes, it is still showing the first instance (1/12) today.
Hopefully the screenshot of the event settings may help.
January 15, 2016 at 1:59 pm in reply to: tribe_get_events query returns past recurring events #1056828Admin
ParticipantThanks for your reply. I had tried that already without success. My updated query with your suggestion had no affect – the past recurring event is still being displayed.
$events = tribe_get_events( array( 'posts_per_page' => 3, 'eventDisplay' => 'custom', 'start_date' => $start_date, 'end_date' => $end_date, 'tribeHideRecurrence' => true, ) ); -
AuthorPosts
