List all events

Home Forums Calendar Products Events Calendar PRO List all events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #25313
    rossburg
    Participant

    I’d like an option to list all events for 2012. I see that I can do tribe-next and tribe-previous individually, but how do I get every event to show? I tried adding a “2012” category, but the next/previous protocol took over.

    #25350
    Jonah
    Participant

    Hi rossburg,

    You should be able to do it by hooking into the pre_get_posts function. Add this to your theme’s functions.php file:
    https://www.sourcedrop.net/Ayb8db9054998

    I hope that helps but let me know if you need anything else.

    – Jonah

    #25369
    rossburg
    Participant

    Thanks for the code. Exactly where in the functions.php should it go and how does it appear in the front end?

    #25372
    Jonah
    Participant

    Hi rossburg,

    You can put that wherever you want in your functions.php file, at the end, at the beginning, in the middle just so long as it doesn’t conflict with anything else in there. The only thing it’s going to do on the front end is modify the query on the events list page to list all events on the page for the next year. That’s what you wanted right?

    – Jonah

    #977792
    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 ‘List all events’ is closed to new replies.