Display Event List on Page

Home Forums Calendar Products Events Calendar PRO Display Event List on Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43847
    Ben
    Participant

    I at gone through all the topics and can’t find a discussion about this in a way that I understand. I simply want to display a list of “x” number of events on a page.. specifically my home page. Isn’t there some way to do this?
    If so, could you explain it in a remedial way that a novice like me could understand?

    Thank you

    #44003
    Jonah
    Participant

    Hi Ben,

    There are a few ways to do this. One way would be to use our Events List widget. That’s going to be the easiest as it doesn’t involve inserting any code. The other options all involve creating a custom query. You can create a custom query by using either our built in query function: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events or using WP_Query: https://gist.github.com/jo-snips/4447338

    You can insert the query code directly into your theme’s template files somewhere like in header.php, page.php, sidebar.php, etc. Or, you could also create a custom page template as instructed here: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates and insert one of the query code examples into the template. Then you can assign that template to any page and have it display your events on the page.

    I hope that helps!

    #44367
    sstruemph
    Participant

    Jonah,

    Is it possible to output the total number of upcoming events like “Upcoming Events 100”? Like this site: http://www.pacificstandardtimepresents.org/calendar/

    #44370
    sstruemph
    Participant

    I figured it out using:
    $count_posts = wp_count_posts(‘tribe_events’);
    echo $count_posts->publish;

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Display Event List on Page’ is closed to new replies.