[EventCalendar] Previous and Next Links in single.php

Alex Tingle alex at firetree.net
Wed Nov 7 19:35:44 UTC 2007


Hi Chris,

This problem has been around for a while. It's a pretty thorny issue.

Obviously when you are just looking at a single post, there is no  
associated query, so there's no way prev/next can do anything special  
for events.

Perhaps the solution would be to have a special category-single  
template, just for event posts. I'm not sure how this feature works  
in the new post-category world, and I'm not sure how it would work  
with posts in more than one category.

In fact, it seems completely insoluble in the general case. Sometimes  
*next* means next post date, sometimes it means next event date- how  
is the single template supposed to know which? It just doesn't have  
the context.

Any thoughts?

-Alex

--


On 7 Nov 2007, at 13:48, firetree_ec3 at spamex.com wrote:

> I did search for this, and didn't find anything.
>
> In single.php, you usually have previous_post_link() and  
> next_post_link() to send you fowards/backwards.
>
> I want these to sort on EVENT date, not post date.
>
> Apparently, a simple cat=3 (My current Events category) does not  
> invoke EC3's "advanced" mode, so they sort by post date.
>
> Is there a way to make these point to previous events and future  
> events?
>
> I had to remove these from EC3 posts because of the confusion they  
> cause.
>
> Chris
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar




More information about the EventCalendar mailing list