[EventCalendar] Display Calendar With Only Events?
John Davis
john at livingpixeldesign.com
Fri Mar 30 18:03:01 UTC 2007
I managed to fix this by commenting out this bit of code in
template_functions.php:
if(!$ec3->show_only_events)
{
// We are interested in normal posts, as well as events.
$sql="( $sql ) UNION
( SELECT DISTINCT
id,
post_title,
post_date AS start_date,
post_date AS end_date,
0 AS allday,
0 AS is_event
FROM $wpdb->posts
WHERE post_status='publish'
AND post_date>='$begin_date'
AND post_date<'$end_date'
AND post_date<NOW()
)";
}
- John
On Mar 30, 2007, at 9:36 AM, pulk wrote:
> maybe give the new version a try: 3.1.1.rc1
> http://prdownloads.sourceforge.net/wpcal/eventcalendar311rc1.zip?
> download
>
> it solved some problems for me.
>
> John Davis wrote:
>> I'm sorry; I don't think I explained myself clearly.
>>
>> I have a calendar, generated by calling ec3_get_calendar(). I have
>> "Keep
>> events separate" selected, and yet it still shows non-events posts in
>> the calendar.
>>
>> I'm hoping to have it not do this.
>>
>> thanks,
>>
>> John
>>
>>
>> On Mar 30, 2007, at 9:02 AM, pulk wrote:
>>
>>> check your plugin settings:
>>>
>>> Show events as blog entries:
>>> Set this to Keep Events Separate in order to use the Event
>>> Category page
>>> to show future events, in date order. Events do not appear on
>>> front page.
>>>
>>> http://wpcal.firetree.net/options/
>>>
>>> John Davis wrote:
>>>> Hello Event Calendar list,
>>>>
>>>> I was wondering if anyone knew of a way to display the calendar
>>>> without
>>>> it listing regular posts -- I want it, in other words, to show only
>>>> posts in the events category. Is this possible?
>>>>
>>>> thanks,
>>>>
>>>> John
>>>>
>>>> _______________________________________________
>>>> Blog: http://wpcal.firetree.net/
>>>> EventCalendar at firetree.net mailing list
>>>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Blog: http://wpcal.firetree.net/
>>> EventCalendar at firetree.net mailing list
>>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>>
>>
>> _______________________________________________
>> Blog: http://wpcal.firetree.net/
>> EventCalendar at firetree.net mailing list
>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>>
>>
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
More information about the EventCalendar
mailing list