• eo_get_permalink() always links to the first occurrence of an event instead of the corresponding re-occurrence. See for example on the eo demo site the event called “Monthly event” with a first occurrence on July 10 and further reoccurrences on August 14 and September 11: The event links of August 14 and September 11 lead to the first occurrence on July 10 instead of their own reoccurrences. This makes it practically impossible to render re-occurring events in single view.

    https://ww.wp.xz.cn/plugins/event-organiser/

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

    (@stephenharris)

    The single event page template is occurrence-agnostic. All dates point to the same page; The single event page isn’t for the first occurrence, it’s for all occurrences.

    Thread Starter LazyDev

    (@milber)

    Hi, thanks for your reply. I figured that from the code by now – but I have to admit it doesn’t really make sense to click on an event on date X and then have a single view that says “this is an event on day X-Y that happens every Monday”. It’s actually totally confusing. Website viewers who are interested in events on specific dates don’t care much about when the event started (in my case often years ago) and at what interval it re-occurs. It gets even more confusing when you break out reoccurrences. Also it makes it impossible to render out events happening on the same date in single view, which is of interest to my audience.
    So for the time being I’ve “solved” this by adding the occurence_id as query string to the permalinks to single events. But it would be much appreciated if this could be a regular feature in upcoming versions.

    Plugin Author Stephen Harris

    (@stephenharris)

    The eo_get_permalink() exists to make that possible to implement. However, WordPress and most themes use get_permalink() and the occurrence ID is not always available in that context. That is, in some situations the link will not reference an occurrence ID.

    However, since you have control over the theme you can append that occurrence ID (or use a ‘pretty URL’ alternative). You can also modify the templates so that on a single event venue, and when an occurrence ID is specified, you modify the content accordingly (e.g. displaying the currently viewed date rather than a list of future dates, and rendering events on at the same time etc).

    With regards to the summary of the event’s schedule, that too can be removed from the template.

    Templates can be over-ridden by copying into the theme – so effectively there’s nothing the plug-in needs to do in order to allow you to implement this.

    Bart of the reason this isn’t in core is that typically links to the event page will not include a reference to the occurrence ID (though the default templates could be designed that way). The other reason was a concern (and I’m willing to be corrected on this) in that you’re effectively duplicating a lot of content and the site may be penalised by search engines as such.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘eo_get_permalink() isn't reoccurrence-aware’ is closed to new replies.