Building links that redirect at a set time
-
Our site has sets of events on successive days which for some reason were set up to be on a different page for each time. So the only way to link to the set of performances is to link to the first performance—& when that performance happens, every marketing link to the entire event series dies unless the URL is redirected by hand in real time. This is driving me mad.
Is there a way I can create a link that will default to the first performance in a set that hasn’t happen yet? (So the link at /eventA links to Friday until Friday night, then automatically skips Friday & links to Saturday instead.)
I’m about to build dozens of events in the next few weeks so if there’s a way to implement this it will save *scores* of logins at inconvenient hours over the next year.
-
Why making it yourself so difficult. You find a lot of calendar plugins that do the job at https://wordpress.org/plugins/search/calendar/. Personally I use The Events Calendar – https://wordpress.org/plugins/the-events-calendar/
-
I feel your pain that setup is really frustrating. Unfortunately, WordPress doesn’t do this automatically out of the box. The usual workaround is to create a single “parent” event or landing page (like
/eventA) and then either manually update the link or use a plugin / custom code that checks the event dates and redirects to the next upcoming performance. Some event plugins support “next occurrence” or “upcoming event” links, so it’s worth checking if yours has that option. Otherwise, a small redirect script based on date/time would be the only way to fully automate it.
- The topic ‘Building links that redirect at a set time’ is closed to new replies.