Show only specific date range

Home Forums Calendar Products Events Calendar PRO Show only specific date range

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1045489
    Michael
    Participant

    There is a thread below with the same question as me. The solution is creating a customised view, I don’t follow exactly what that means.

    https://theeventscalendar.com/support/forums/topic/specific-date-range-over-two-months-shown/

    Can I use the permalink to achieve what I am after? Such as the example format below?

    http://www.example.com/program/week/?tribe-bar-date=2016-02-08

    I’d be happy if all instances of ‘All Events’ etc linked back to this address rather than the standard which is…

    http://www.example.com/program/

    #1045585
    Geoff
    Member

    Hello Michael,

    Yes, the person in that particular thread was hoping to create a highly customized view that included a specific date range.

    What you note as far as using the URL from the search filter is perfect for displaying a events. That certainly works!

    If you are looking for something more than that, then it would require setting up a new page template in your theme and setting up a new post query using our tribe_get_events() function as the foundation. This article provides some nice examples of how to do that, including limiting the return to a specific date range.

    Will this work for you? Please let me know. 🙂

    Cheers!
    Geoff

    #1046033
    Michael
    Participant

    Thanks for the quick response and link to the article!

    It looks like that is what I need to do but all I have managed so far is to make a custom template by copying the ‘default template’ into my child-theme and placing it in a directory names ‘tribe-events’.

    I think this might be beyond my wordpress level of experience, I’m a bit vague on if the tribe_get_events() should be in my functions.php file or on the ‘default-template.php’ page.

    #1046055
    Geoff
    Member

    Nice start!

    I would suggest copying a different template from your theme (e.g. page.php), remane it, then it as the foundation for your query. You can use the tribe-get-events() function directly in that template to create your event query. 🙂

    Geoff

    #1076391
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Show only specific date range’ is closed to new replies.