Forum Replies Created
-
AuthorPosts
-
July 5, 2013 at 10:54 am in reply to: Version three breaks custom event display using (WP_Query) #53474mindshareParticipant
Here’s complete code in case that helps:
<?php
/**
* widget-events.php
*
* @created 4/29/13 11:53 PM
* @author Mindshare Studios, Inc.
* @copyright Copyright (c) 2013
* @link http://www.mindsharelabs.com/documentation/
*
*/if(date('l') == 'Monday') {
$start_date_week = date('j M Y', strtotime('today'));
} else {
$start_date_week = date('j M Y', strtotime('last Monday'));
}
$end_date_week = date('j M Y', strtotime('this Sunday'));$start_date_month = date('j M Y', strtotime('first day of this month'));
$end_date_month = date('j M Y', strtotime('last day of this month'));$start_date_next = date('j M Y', strtotime('first day of next month'));
$end_date_next = date('j M Y', strtotime('last day of next month'));//echo ''; var_dump($end_date_next); echo ''; die;
?>
Events & Information
This Week
This Month
Next Month'tribe_events',
//'eventDisplay' => 'past',
'start_date' => $start_date_week,
'end_date' => $end_date_week,
'eventDisplay' => 'all',
'posts_per_page' => -1
)
);
?>
have_posts()) : ?>
have_posts()) : $week->the_post(); ?>
<li class="post-"><a href="">
<a href="">
...No events found.
'tribe_events',
//'eventDisplay' => 'past',
'start_date' => $start_date_month,
'end_date' => $end_date_month,
'eventDisplay' => 'all',
'posts_per_page' => -1
)
);
?>
have_posts()) : ?>
have_posts()) : $month->the_post(); ?>
<li id="post-"><a href="">
<a href="">
...No events found.
'tribe_events',
//'eventDisplay' => 'past',
'start_date' => $start_date_next,
'end_date' => $end_date_next,
'eventDisplay' => 'all',
'posts_per_page' => -1
)
);
?>
have_posts()) : ?>
have_posts()) : $next->the_post(); ?>
<li id="post-"><a href="">
<a href="">
...No events found.
July 5, 2013 at 10:53 am in reply to: Version three breaks custom event display using (WP_Query) #53472mindshareParticipantWell have been using it to display “this months” events (along with two other custom queries in the widget for “this week” and “next month”).
Now with the latest plugin update the queries seem to be returning all events, without respect to the start/end parameters.
-
AuthorPosts