[EventCalendar] Post events in the events category AND as regular
posts
Matt Dawson
matthewtdawson at gmail.com
Thu Mar 15 14:01:34 UTC 2007
I'm not sure if this'll exactly get at solving your problem, but I
*think* it will.
In previous versions of the plugin, Keep Events Separate *did* show
event posts on the homepage.
With some help from a post by Alex some time ago, I was able to turn
that behavior back on.
I wouldn't qualify this as "hacking" - but you do have to open up the
eventcalendar3.php file and make some minor tweaks. On my version,
the "tweak" is somewhere around line 235 - but I have a lot of extra
comments in my code that I added - and I'm also running 3.1.0. Here's
what my version looks like now:
/* this next section commented out to restore old "keep events
seperate" behavior
ie. posts are excluded from use on other pages if they *only*
have a category of event. */
// elseif(!$ec3->is_category):
// Hide all events
// $where.=" AND ec3_sch.post_id IS NULL ";
// $ec3->join_ec3_sch=true;
Comment out those four lines, and I think your problem will be solved.
(Alex, you'll have to correct me if I'm wrong - or if for some reason
3.1.1 doesn't use that block.)
Matt
>
> I tried out the queries http://www.perrocompanero.com/?ec3_after=today
> and http://www.perrocompanero.com/?ec3_before=2007-03-31 with the
> default theme on and it had no effect. The same problem persists, I
> have not been able to get events to show up as regular posts on the
> index page (listed by post date) AND to have them show up in the
> events category ordered by ascending date (EC version 3.1.1rc1).
>
> I know Sam sent this code:
>
> <li>Events %TITLE% (%TIME%)',// template_event '%DATE%:',
> // template_day 'j F' // date_format );
> ?></li>
>
> Which will get the Events to show up, as on his events page:
> http://www.audecentric.com/upcoming/
> ...similar to the sidebar list code.
>
> However, I would like to get events to show up in ascending order as
> full posts in the event category, and as regular posts in post order
> on the index page.
>
> Any ideas?
> -Martin
More information about the EventCalendar
mailing list