[EventCalendar] Schedule Showing in Included Post

Alex Tingle alex at firetree.net
Sat Dec 16 12:41:08 UTC 2006


On Fri, 15 Dec 2006 06:28:31 -0500
"Dave Sabol" <desabol at gmail.com> wrote:

> Hey Alex,
> 
> I hate to be a pest...

Yes. Sorry I'm not being very responsive at the moment. Paid work is
taking priority.


> but I stumbled across something that may be a bug (it
> could also simply be a conflict with another plug-in which isn't your
> problem.)
> 
> On this site: http://www.nastrings.org/, I am using EC to manage my events.
> I am also using the Improved Include Page plugin (
> http://www.vtardia.com/blog/improved-include-page/) to display the top
> information box in the center of the page. If I keep events separate and off
> of the front page...everything is fine. However, if I choose to "Show Events
> as Blog Entries", the EC still works, but I get the schedule for the most
> recent event embedded into the information that I am including.
>
> So as the page is now, it is normal, but the moment I change how I display
> events (in theory to bring attention to them on the front page), I get the
> date and time of the most recent event showing up in the gray information
> box.
> 
> I checked the db tables and there is no overlap there, and the page that I
> am including is just a page and has no mention of events.
> 
> Any thoughts?

The iinclude plugin applies the "the_content" filter, but doesn't set
the global $post variable. I think that's probably a flaw in the
iinclude plugin - I can't see how EC can be wrong to look at $post.

Anyway, the simplest solution is to simply clear $post before you call
iinclude_page()...
  $post=false;

-Alex

-- 
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net  +44-7901-552763 



More information about the EventCalendar mailing list