Admin

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: tribe_get_events not showing daily recurring event #1086243
    Admin
    Participant

    Has anyone else had any problems with this?

    in reply to: tribe_get_events not showing daily recurring event #1085450
    Admin
    Participant

    I’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?

    in reply to: tribe_get_events not showing daily recurring event #1084493
    Admin
    Participant

    Version 4.0.3 if that matter

    in reply to: tribe_get_events not showing daily recurring event #1084353
    Admin
    Participant

    I’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.

    http://pastebin.com/v5h3d4pi

    I’ve confirmed commenting those out does nothing.

    in reply to: tribe_get_events not showing daily recurring event #1083512
    Admin
    Participant

    No that doesn’t do anything, both removing or setting it to 0.

    in reply to: tribe_get_events query returns past recurring events #1058414
    Admin
    Participant

    That was it! The query is now working correctly. Thanks for your help!

    in reply to: tribe_get_events query returns past recurring events #1058180
    Admin
    Participant

    Hi 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: 08336c16

    Then 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(); ?>
    in reply to: tribe_get_events query returns past recurring events #1057915
    Admin
    Participant

    Hi 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.

    View post on imgur.com

    in reply to: tribe_get_events query returns past recurring events #1056828
    Admin
    Participant

    Thanks 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,
      ) );
Viewing 9 posts - 1 through 9 (of 9 total)