[EventCalendar] How do I display a list of Past or Previous
Events on the sidebar?
Dr. Peter Troxler
peter.troxler at gmx.net
Mon Sep 24 14:33:26 UTC 2007
On 24-sep-2007, at 15:41, Joe Subs wrote:
> thank you, Dr. for your prompt reply. i'm very grateful for your help
>
> but what i want is to know how can I feature a list of "past
> events" on the sidebar.
create a link to http://yourblog.com/your_event_category/?
ec3_before=today
>
> with Upcoming Events, we can paste in the code: <?php ec3_get_events
> (5); ?> somewhere in the sidebar.php of the theme, and that will
> list 5 upcoming events there.
>
> but what is the code needed to show "past events",
>
> and while we are at it,
>
> can I also know what is the code to show "today's events"?
from http://wpcal.firetree.net/template-functions/ec3_get_events/
> Simple Example: Add this code to your sidebar.php
> <li>Events <?php ec3_get_events(5); ?> </li>
> Parameters:
> $limit
> The maximum number of future events or days to list. You can enter
> a plain number, which limits the number of events, or you can enter
> a string like '7 days' which shows all events for the next week.
try
> <?php ec3_get_events('1 day'); ?>
>
> i'm doing a site for a community venue which hosts a lot of theatre
> shows, exhibitions and gigs. and it would be super if we can have
> that feature on the main page.
>
> thanks again,
>
> JK
>
>
> On Sep 24, 2007, at 7:56 PM, Dr. Peter Troxler wrote:
>
>> you can set a time window with ?
>> ec3_before=today&ec3_after=20070801 and you'd then set the after
>> date with some suitable calculation
>>
>> for todays events check http://wpcal.firetree.net/advanced-queries/
>>
>> / pt
>>
>> On 24-sep-2007, at 13:21, Joe Subs wrote:
>>
>>> How do I display a list of Past or Previous Events on the sidebar?
>>>
>>> Hello all, I need your kind help...
>>>
>>> I'm using: WP 2.2 / EC 3.1.0
>>>
>>>
>>> I know that we can display past events by using this as a page link:
>>>
>>> http://domain.com./?ec3_before=today
>>>
>>> click on that an the whole page will feature a list of past events
>>>
>>>
>>> but how do I display a list of past events on a sidebar?
>>>
>>> for a list of upcoming events, we can add this:
>>>
>>> <?php ec3_get_events(5); ?>
>>>
>>>
>>> but what about past events?
>>>
>>> or today's event?
>>>
>>>
>>> thanks in advance.
>>>
>>> cheers.
>>>
>>> jk
>>> _______________________________________________
>>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20070924/0bae53d1/attachment-0001.html
More information about the EventCalendar
mailing list