Upcoming Events in Page Template – Events Calendar Pro 3.0+

Home Forums Calendar Products Events Calendar PRO Upcoming Events in Page Template – Events Calendar Pro 3.0+

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #101568
    runwildmissoula
    Participant

    Hi!

    I just completed an exhaustive search and read-through of forum posts related to the question of adding in the events calendar (and different “views” like grid/list/category etc.) onto a page beyond what is defined as the calendar page in the plugin’s settings.

    The following thread caught my eye:
    https://tri.be/support/forums/topic/upcoming-events-in-page-template/

    Particularly, the part where Jonah says, “Another option would be to include a custom query in your page using either WP_Query or tribe_get_events() (https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events)”

    Anyway, I followed the link he referenced. And then I found an example on that page for exactly what I want to do – sweet! “Here’s an example querying for a specific events category and only upcoming events… ”

    Now, the only problem is that the top of that page says, “Please note that all documentation below is for The Events Calendar 2.0.1 through 2.0.11. Documentation for version 3.0 and beyond is available on our main documentation page.” And I’m currently running Events Calendar Pro version 3.0+. Shoot!

    So, I headed over to the more recent documentation. I read through this: http://docs.tri.be/Events-Calendar-PRO/. But for the life of me, I couldn’t find a comparable page as what Jonah linked to (https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events).

    Thanks in advance for you help in pointing me in the right direction now that I’m using 3.0+ and not the plugin version that was current at the time of this other forum thread that I found from a year ago.

    #102195
    Brook
    Participant

    Howdy runwildmissoula,

    I bet you we live in the same area! Those are some great questions.

    When we updated to 3.0 we really improved the breadth of our API documentation, and laid everything out more logically. Sadly some of our more common issue tutorials like this one from 2.0 have not yet been updated. Fortunately in many cases, like this one, not much has changed. Have you tried the code suggested in that tutorial? tribe_get_events() has stayed fairly consistent. I believe that code will work.

    Please let me know how it goes. Or, if it is giving you trouble or you have other questions, post and I would be glad to answer. Cheers!

    – Brook

    #102401
    runwildmissoula
    Participant

    Are you also in Montana? Great place to be.

    Anyway… well, that’s good news! So I gave the code a try. The list that shows up on my page just includes a series of event titles and event start dates. It’s just not wanting to display the excerpt.

    #102944
    Brook
    Participant

    Howdy runwildmissoula,

    Yeah, I love it here.

    That is odd, that code is working fine for me on The Events Calendar 3.4.1. Could you try replacing the_excerpt(); with the_content(); ? Does that help any? If you view the source for you page, do you see the content inside of the list, or is <div class=”event-excerpt”></div> empty?

    If the above does not help you solve this, could you perhaps post a link to a page in which you have set this up and it is not working? It would help if I could see things as well, definitely easier and quicker to diagnose. Please let me know. Cheers!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Upcoming Events in Page Template – Events Calendar Pro 3.0+’ is closed to new replies.