Display recurring event only once in template

Home Forums Welcome! Pre-Sales Questions Display recurring event only once in template

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #968274
    Tyler
    Guest

    I am trying to create a page of featured events on my site. I have a query pulling events of the featured category and displaying all of the proper information (date, venue name, address, etc…). The one thing I cant quite seem to figure out is how I can display only the first instance of a recurring event. Is there a chunk of code that can make this possible?

    Here is what I am working with for testing purposes: http://boulderjct.org/test-event/

    Thanks!

    #968909
    George
    Participant

    Hey Tyler,

    First off, I’m very sorry about the delayed response here – I don’t know how, but your question here was in my queue but somehow missed! Real sorry man.

    As for your question, you should be able to get the first event in a recurrence series fine – they’re all just normal posts of the “tribe_events” post type, with the exception that with recurring events, the ID of the first event is used for the post_parent property of all other events in the series.

    Does that help here? Are you able to query things fine, but then too many of the recurring event instances show up in your query results?

    Thank you!
    George

    #984303
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Display recurring event only once in template’ is closed to new replies.