Javier

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Javier
    Participant

    got it to work! thanks!

    used this one:

    Jonah West July 22, 2012 Permalink
    Hi David,

    We had another user provide a potential fix for this that let’s you still use the other template options. To try it out, make a copy of /wp-content/plugins/the-events-calendar/views/table.php and place in an ‘events’ folder in your theme. Then paste in the following code before the $monthView variable code on line 32:

    if( !$eventPosts ) {

    $eventPosts = new stdClass();

    $eventPosts->EventStartDate = ‘2012-‘. $month .’-01 00:00:00′;

    $eventPosts->EventEndDate = ‘2012-‘. $month .’-01 00:00:00′;

    $eventPosts = array( $eventPosts );

    }

    //place the above code before this…

    $monthView = tribe_sort_by_month( $eventPosts, $tribe_ecp->date );

    Try that out and let me know how it goes.

    Cheers,
    Jonah

Viewing 1 post (of 1 total)