- This topic has 4 replies, 3 voices, and was last updated 13 years, 8 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Return Navigation on Single Event Page
Example page: http://neohgolf.com/events/?event_id=94
Once a visitor arrives at a future-month Single Event Page (SEP), I can’t seem to find a way to link them back to the calendar at the month from which they came.
(Currently, if the visitor hits his ‘back’ button from a future-month SEP, he is returned to the calendar showing current month and has to use the arrows again to scroll through the months one after the other.)
How do I create some working navigation links on a Single Event Page that will return the visitor to the month from which they came? (i.e., if it’s March and the visitor was looking at a June SEP, how do I get them back tho the June calendar page directly?)
Ok, you can now use calmonth and calyear as url parameters to the page you came from, so adding this might now help for a “back link” (put it in the setting for single event format):
<a href="http://neohgolf.com/tournament-calendar/?calyear=#_{Y}&calmonth=#_{m}">Back</a>
For this to work, you need to apply the following changeset:
Works perfectly! Thanks Franky! –AF
When I use this in the “Default single event format”:
<a href="http://www.domain.com/calendar/?calyear=#_{Y}&calmonth=#_{m}">Back</a>
The URL displayed in the web browser task bar while hovering the mouse pointer over the link is correct, but the browser goes to a URL like this, without a slash after .com, when the link is clicked:
http://www.domain.comcalendar/?calyear=2011&calmonth=04
I suspect that it worked for allenfreeman, but not for me, because I have event permalinks enabled.
The problem above was found to be due to an HTTP 301 redirect I was doing outside of WordPress rather than to the use of event permalinks.