• I had an older post thread and I am wondering if my issue is related. I am posting again wondering if there is a better way as I think it must be a common need.

    old post here:

    https://wordpress.org/support/topic/echo-single-date-of-recurring-event?replies=9

    Basically, on a single-event-page at the bottom I list “Other Events on This Day:.”

    It’s pretty easy to do if all my events are only single date events. I just use a custom query to match events with the same event date and output the titles.

    However, when I mix into that, events that reoccur I cant target those dates on a single-event-page. Listing “Other Events on This Day” is pretty common and I am wondering how other people have done this taking into account recurring events.

    Thanks

    https://wordpress.org/plugins/event-organiser/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    By default, you can’t for recurring events: since it’s a single page for all dates of an event, there is no meaningful “this day”.

    As mentioned in the previous thread, it would be possible say to write an “endpoint”, yoursite.com/events/event/my-event-name/<occurrence-id> (or occurence date), or just yoursite.com/events/event/my-event-name/?occurrence_id=<occurrence-id> and use that to show the appropriate events on “Other Events on This Day”.

    This isn’t done by default because it’s simply not possible for the plug-in to inject the occurrence ID in every instance, and would cause too much inconsistency. But if you have control over the theme as well, then you have lot more freedom.

    Thread Starter WPWanderer

    (@wpwanderer)

    Thanks, Stephen. That’s what I thought from our past conversation. Just making sure. I was tinkering with it back then and was getting a bit frustrated, but will go back at it. Injecting variables into address paths is pretty new to me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List other events on the same day….’ is closed to new replies.