• Hi, I noticed, that when I add next and previous links on a detail site, the order is not according to the start date of an event, but rather according to the date, the event has been published. It’s an easy workaround to adjust the publication dates, but I thought you might want to know, in case there’s something you can do to address this.

    Example to clarify:
    Event A, publication on Nov 1 2024, start date Jan 1, 2025
    Event B, publication on Nov 5 2024, start date Jan 2, 2025
    Event C, publication on Nov 4 2024, start date Jan 3, 2025

    When I’m on the event detail page of Event A, it will show Event C as next, instead of B.

    • This topic was modified 1 year, 4 months ago by dreist.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    I understand what you mean. But navigation to next/previous event (post) is not something I can (or at least should) hook into. I don’t want to mess around with a default query, to avoid possible conflicts with other plugins or the active theme.
    But if you think this is something that can be safely added, please let me know.

    Guido

    Thread Starter dreist

    (@dreist)

    I wouldn’t know how either.

    Thanks for getting back and as I said, the workaround is simple and maybe, this post is a help to others, down the line.

    Plugin Author Guido

    (@guido07111975)

    the workaround is simple

    I don’t think it’s simple, you must hook into the default post navigation. I think it’s better to build a custom query for this. I will look into this when having some spare time. But maybe there are also plugins for this, don’t know..

    Guido

    Thread Starter dreist

    (@dreist)

    I was referring to adjusting the publication date as being easy. I can set any date as the publication date, because for events, the only dates that matter are start and end.

    once the publication date is adjusted, the order for next and previous is the way you want them.

    Plugin Author Guido

    (@guido07111975)

    Aha, I do understand now. Yes, you’re right about that 🙂

    Guido

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

The topic ‘Next and Previous Entry on event detail site’ is closed to new replies.