Display events from a specific day

Home Forums Calendar Products Events Calendar PRO Display events from a specific day

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22432
    Kishore Hari
    Participant

    Hello,
    I need to figure out how to display all events from a specific day. It seems like tribe_get_events would be the way to go, something like:
    $get_posts = tribe_get_events(array(‘posts_per_page’=>10, ‘date’=>21-10-2012) );
    I’m a PHP n00b, so I’m sure the formatting is wrong, but am I on the right track?
    Thanks,
    Damian

    #22440
    Jonah
    Participant

    Hi Damien,

    Something like this should work for you: https://gist.github.com/3148810 – you’ll probably want to adjust the HTML but this query will only query events for today 🙂

    Let me know if you need anything else.

    – Jonah

    #22441
    Kishore Hari
    Participant

    Hi Jonah,
    Thanks for the quick reply.
    Will this allow me to pull events from a specific date in the future? I’m shooting for Oct. 21, 2012 specifically.
    To be more specific, I am creating a custom grid view where each day square loads all events from that day, color-coded by category.
    Thanks!
    Damian

    #22480
    Kishore Hari
    Participant

    Hi again,
    I solved my own problem by entering the date in the future in question here:
    $CurrentDate = date(‘2012-10-21’);
    You can close this thread. Thanks again for the help!
    Damian

    #22542
    Jonah
    Participant

    Hi Damian,

    Glad you figured it out! Let us know if there’s anything else you need help with.

    Cheers,
    Jonah

    #977398
    Support Droid
    Keymaster

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Display events from a specific day’ is closed to new replies.