[EventCalendar] Re: 404 error when there are no future events (EC
3.1._pre14 and EC 3.1._pre15)
Steve Winton
stevewinton at gmail.com
Fri Oct 6 09:01:46 UTC 2006
Has no-one else noticed this? Could it be something to do with my setup?
Thanks
Steve
On 10/4/06, Steve Winton <stevewinton at gmail.com> wrote:
> Hi all
>
> What is the recommended way of avoiding the 404 error when using EC in 'Keep
> Events Separate' mode and there are no future events scheduled?
>
> Currently I've hacked my 404.php template file as follows:
>
> <?php
> global $wp_query;
> if ($wp_query->query_vars['cat'] =
> get_option('ec3_event_category')) :
> ?>
> <p>You were trying to access the events page, but there are currently no
> scheduled events!</p>
> <pre>
> <?php
> endif;
> ?>
>
> But does anyone have a more elegant approach?
>
> Thanks,
> Steve
>
>
More information about the EventCalendar
mailing list