Forum Replies Created
-
AuthorPosts
-
David
MemberThanks Jonah, that sounds like it will be a winner (the strtotime(‘1 month’) is a great find).
Unfortunately the Start Date still seems to insist on today’s date. I can alter end_date to see that it’s behaving but giving start_date something like ’22 Sep 2012′ still seems to include any events from today onwards. Could you perhaps test that script and tell me I’m not crazy? It is okay to set the dates in this format – perhaps I’m not doing it correctly?
‘start_date’ => ’22 Sep 2012′,
‘end_date’=> ’27 Sep 2012’,David
MemberHi Jonah. I understand that it sits outside the scope of what the plugin offers and I’m already very close to achieving it. I’m just having a spot of trouble with querying a selected month’s posts, using tribe_get_events().
Based from a previous script you made for someone else (found here https://gist.github.com/3148810) I have this script (below) that’s almost there in displaying a chosen month’s posts from clicking on a link in the mini-calendar. I’m tricking the day-based time query by predefining the start date at xxxx-xx-01 and the end date to xxxx-xx-31.
My problem is the start date seems to be being ignored and seems to base itself off of today’s date instead of the one defined. If I set the start and end manually to the 12th of this month – I get that day’s event but also today’s and any others in between. I’d really appreciate your help on this. Is there a month based version of doing this?
global $post;
$getMonth = $_GET[‘viewMonth’];
$CurrentDate = date(”. $getMonth .’-01′);
$EndDate = date(”. $getMonth .’-31′);
echo $CurrentDate;
$events_today = tribe_get_events(
array(
‘start_date’=>$CurrentDate,
‘end_date’=>$EndDate
)
);
foreach($events_today as $post) {
setup_postdata($post);
etc.September 6, 2012 at 12:02 am in reply to: tribe_calendar_mini_grid Next/Previous Not Functioning #24609David
MemberHi Jonah,
Having it as a widget is fine as long as it works – and it seems to be going just fine.
Thanks for your help.September 5, 2012 at 3:58 am in reply to: tribe_calendar_mini_grid Next/Previous Not Functioning #24576David
MemberAnother thing worth noting. When I web-inspect the page there are no errors. However in the pro plugin folder I see an events-mini-ajax.js file. If i view the ‘Sources’ in web-inspect for my Events page I see no mention of this file. Perhaps it’s not even being called in, as it should? Hence no error as it wouldn’t be missing if it’s not being called in the first place?
September 5, 2012 at 1:42 am in reply to: tribe_calendar_mini_grid Next/Previous Not Functioning #24573David
MemberNo such luck, Jonah. Perhaps you could show me a working example of it? It might help me troubleshoot it from this end.
September 4, 2012 at 7:14 pm in reply to: tribe_calendar_mini_grid Next/Previous Not Functioning #24555David
MemberHI Jonah,
Thank you for the reply but unfortunately it did not do the trick. As stated I have debugged it down to the point of it not working virtually ‘straight out of the box’/not-customising-anything. If it helps, Tooltips still function. -
AuthorPosts
