Home › Forums › Calendar Products › Events Calendar PRO › Mini calendar widget showing older events on clicking on a day
- This topic has 7 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
November 19, 2013 at 9:15 am #77435
africaatlanta
ParticipantWhen I click on a particular day on the mini calendar, it is showing me the correct date but events from the past.
http://africaatlanta.org/downloads/screenshot.jpgPlease help me figure this out. I feel its related to single-event.php in mini calendar widget.
current_post == 1 ) {
$class = ‘ first ‘;
}
if ( $wp_query->current_post+1 == $wp_query->post_count ) {
$class .= ‘ last ‘;
}$startDate = strtotime( $post->EventStartDate );
$endDate = strtotime( $post->EventEndDate );
$today = time();/* If the event starts way in the past or ends way in the future, let’s show today’s date */
if ( $today > $startDate && $today<div class=”tribe-mini-calendar-event event-current_post;?>”>
<a href=””>post_title; ?>
|
ID ); ?>
The widget can be found at africaatlanta.org
November 19, 2013 at 9:16 am #77436africaatlanta
ParticipantSorry pasted the wrong code.
current_post == 1 ) {
$class = ‘ first ‘;
}
if ( $wp_query->current_post+1 == $wp_query->post_count ) {
$class .= ‘ last ‘;
}$startDate = strtotime( $post->EventStartDate );
$endDate = strtotime( $post->EventEndDate );
$today = time();/* If the event starts way in the past or ends way in the future, let’s show today’s date */
if ( $today > $startDate && $today<div class="tribe-mini-calendar-event event-current_post;?>”>
<a href="”>post_title; ?>
|
ID ); ?>
November 20, 2013 at 4:51 pm #77747Kelly
ParticipantHi, africaatlanta. Great question! That is definitely peculiar behavior.
First, I want to check about your troubleshooting steps and the results of them. Did you have a chance to try with a default WP theme like Twenty Twelve? If so, did that make a difference? When you tried with all other plugins disabled was there any change?
If you could post your System Information for the Events Calendar Settings Help tab, that would be helpful, too.
Thanks! 🙂
November 20, 2013 at 6:56 pm #77777africaatlanta
ParticipantHey Kelly,
I have been using the Twenty Twelve theme for the calendar. I did try it with all my plugins disabled. Here is the System Info:URL
INSTALL KEYS
events-calendar-pro = a774b775509c4288054bf59cde602b91f3131c66
WORDPRESS VERSION
3.6.1
PHP VERSION
5.3.25
PLUGINS
CSS Plus version 1.4.3 by Paulo E. Calixto(http://pauloklixto.com)
The Events Calendar PRO version 3.2 by Modern Tribe, Inc.(http://m.tri.be/20)
Limit Login Attempts version 1.7.1 by Johan Eenfeldt(http://devel.kostdoktorn.se)
Members version 0.2.4 by Justin Tadlock(http://justintadlock.com)
The Events Calendar Category Colors version 3.0.5 by Andy Fragen, Barry Hughes(http://thefragens.com/blog/)
The Events Calendar version 3.2 by Modern Tribe, Inc.(http://m.tri.be/1x)
Theme My Login version 6.3.8 by Jeff Farthing(http://www.jfarthing.com)
NETWORK PLUGINS
–
MU PLUGINS
–
THEME
Twenty Twelve
MULTISITE
–
SETTINGS
recurring_events_are_hidden = exposed
tribeEventsTemplate =
tribeEventsBeforeHTML =
tribeEventsAfterHTML =
previous_ecp_versions =
Array
(
[0] => 0
[1] => 3.1
)
latest_ecp_version = 3.2
disable_metabox_custom_fields = hide
welcome_notice = 1
custom-fields =
Array
(
[0] => Array
(
[name] => _ecp_custom_1
[label] => Type of Activity
[type] => checkbox
[values] => Art Exhibition
Cinema
Conference & symposium
Performance
Salon
Workshop
)[1] => Array
(
[name] => _ecp_custom_2
[label] => Genre
[type] => dropdown
[values] => Arts & Culture
Business & Innovation
Education
Global Affairs
)[2] => Array
(
[name] => _ecp_custom_3
[label] => Parking Information
[type] => text
[values] =>
))
stylesheetOption = tribe
tribeEnableViews =
Array
(
[0] => upcoming
[1] => month
[2] => day
[3] => map
[4] => photo
)
viewOption = month
tribeDisableTribeBar =
hideLocationSearch =
hideRelatedEvents =
monthEventAmount = 3
donate-link =
postsPerPage = 6
liveFiltersUpdate =
hideSubsequentRecurrencesDefault =
userToggleSubsequentRecurrences =
showComments =
showEventsInMainLoop =
eventsSlug = events
singleEventSlug = event
multiDayCutoff = 12:00
defaultCurrencySymbol = $
embedGoogleMaps = 1
geoloc_default_geofence = 2
geoloc_default_unit = miles
embedGoogleMapsZoom = 10
debugEvents =
defaultValueReplace = 1
eventsDefaultOrganizerID = 0
eventsDefaultVenueID = 78
eventsDefaultAddress =
eventsDefaultCity = Atlanta
eventsDefaultState = GA
eventsDefaultProvince =
eventsDefaultZip =
defaultCountry =
eventsDefaultPhone =
tribeEventsCountries =
recurrenceMaxMonthsBefore = 24
recurrenceMaxMonthsAfter = 24Thanks! It would be a really big help if you could point me at the right direction.
November 20, 2013 at 7:03 pm #77778africaatlanta
ParticipantI tried deactivating the plugin The Events Calendar Category Colors, and it seems to work now. Whats the work around for this to work with the plugin?
November 20, 2013 at 7:18 pm #77780africaatlanta
ParticipantIt works after updating the Plugin. I missed the bug fixes for 3.1.1.
Thanks Kelly. You can close the thread.
November 21, 2013 at 5:25 am #77809Kelly
ParticipantThat’s great news, africaatlanta! 🙂 Thanks for letting us know!
July 7, 2015 at 6:29 am #982269Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Mini calendar widget showing older events on clicking on a day’ is closed to new replies.
