Upcoming Events in Page Template

Home Forums Calendar Products Events Calendar PRO Upcoming Events in Page Template

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30759
    Jason
    Participant

    I’ve looked for a bit – and maybe I’m just completely missing it here – but how can I embed the upcoming events widget into a page template?

    Is there a shortcode to use? Or is there a function that needs to be used?

    Thanks for your help.

    #30779
    Jonah
    Participant

    Hi Jason,

    We don’t have any shortcodes but you can echo any widget using the_widget() function in WordPress (http://codex.wordpress.org/Function_Reference/the_widget). Here are the following widgets you can call:

    TribeEventsListWidget()
    TribeEventsAdvancedListWidget()
    TribeEventsCalendarWidget()
    TribeEventsFeatureWidget()

    You could call any of those with the_widget() function like so:

    the_widget('TribeEventsAdvancedListWidget'); //will echo the Events Advanced List Widget

    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)

    I hope that helps but let me know if you have any questions.

    – Jonah

    #30791
    Jason
    Participant

    Thanks Jonah! Good stuff.

    #30799
    Jonah
    Participant

    No problem Jason, let us know if you need anything else.

    – Jonah

    #978427
    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 ‘Upcoming Events in Page Template’ is closed to new replies.