Events list in a single page theme

Home Forums Calendar Products Events Calendar PRO Events list in a single page theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #122968
    redemption
    Participant

    Hi! I’m kind of a neophyte and I suspect the solution to this isn’t too hard. I’m currently building a site using the Haven (http://haven.themes.pixelentity.com/) theme and it’s a single page system in which pages are made and edited and displayed at once on a homepage in a specified order. In order to get the standard “Upcoming events” bit to display I have to be able to tell the theme what page to find it on and what order to put it in. So far as I can tell the calendar pages self-generate so I can’t make it work yet. In previews I can see that it looks great with the theme and will look excellent when blended into the mix. Widgets are only used on non-homepage pages. Help?

    #123510
    Brook
    Participant

    Howdy Redemption!

    Good question. Have you tried the option “Include events in main blog loop” found in WP Admin > Events > Settings? Checking that box might be what you are looking for.

    If that option does not satisfy your needs, then what you want is going to require a hefty bit of programming. You could use tribe_get_events(), which isĀ documented in detail here. That would allow you to query a group of events and include them anywhere on your site, even in the main loop. If you set the second argument that function accepts then you will get a full WP Query object returned. That might help you aas well, especially if you are interested in examining the SQL and query that this function builds to retrieve events from date ranges.

    Does that make sense? Will one of those options work for you? Please let me know. Cheers!

    – Brook

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Events list in a single page theme’ is closed to new replies.