David

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Customising Month Based Archive Pages #24734
    David
    Member

    Thanks 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’,

    in reply to: Customising Month Based Archive Pages #24722
    David
    Member

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

    in reply to: tribe_calendar_mini_grid Next/Previous Not Functioning #24609
    David
    Member

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

    in reply to: tribe_calendar_mini_grid Next/Previous Not Functioning #24576
    David
    Member

    Another 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?

    in reply to: tribe_calendar_mini_grid Next/Previous Not Functioning #24573
    David
    Member

    No such luck, Jonah. Perhaps you could show me a working example of it? It might help me troubleshoot it from this end.

    in reply to: tribe_calendar_mini_grid Next/Previous Not Functioning #24555
    David
    Member

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

Viewing 6 posts - 1 through 6 (of 6 total)