[EventCalendar] get_events and post Content

Alex Tingle alex at firetree.net
Mon Jan 29 15:30:45 UTC 2007


Hi Mark,

Got a link I can look at?

-Alex

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

On 29 Jan 2007, at 14:59, Mark McGrath wrote:

> It's working now, but it's outputting "No events."  Which is odd
> because I do know there are events, as get_events worked fine.  Any
> thoughts?
>
> Thanks so much for your help and quick replies.
>
> On 29/01/07, Alex Tingle <alex at firetree.net> wrote:
>> Hi Mark,
>>
>> On 29 Jan 2007, at 14:35, Mark McGrath wrote:
>>
>> > I did a search and all that turned up for custom loop was this
>> > question: 
>> http://wpcal-archive.firetree.net/2006-November/001187.html
>> >
>> > I tried the code provided in that respsonse and get a parse error on
>> > this line:
>> >
>> > $end  =mysql2date($date_format,$post->ec3_schedule->end)
>> >
>> > I'm using WP 2.1, would this have anything to do with it?
>>
>> That line is missing a semi-colon at the end. Should be...
>>
>>      $start=mysql2date($date_format,$post->ec3_schedule->start);
>>      $end  =mysql2date($date_format,$post->ec3_schedule->end);
>>
>> Let me know how you get on.
>>
>> -Alex
>>
>> --
>>
>> > Thanks for the reply.
>> >
>> > On 29/01/07, Alex Tingle <alex at firetree.net> wrote:
>> >> Hi Mark,
>> >>
>> >> You need a custom loop. Search the mailing list archives for more
>> >> details.
>> >>
>> >> -Alex
>> >>
>> >> --
>> >>
>> >>
>> >> On 28 Jan 2007, at 23:34, Mark McGrath wrote:
>> >>
>> >> > Hi all,
>> >> >
>> >> > I'm using the exact code from the example:
>> >> >
>> >> > ec3_get_events(
>> >> >  4,                                      // limit
>> >> >  '%DATE%: <a href="%LINK%">%TITLE%</a>', // template_event
>> >> >  '',                                     // template_day
>> >> >  'j',                                    // date_format
>> >> >  '%MONTH%:'                              // template_month
>> >> > );
>> >> >
>> >> > Which works wonderfully, but I would also like to include the
>> >> Content
>> >> > of my event in this list as well.  The content is only about a
>> >> > sentence long, so I'd like to include it on the Events page 
>> instead
>> >> of
>> >> > making users click on the post to go to a page with only a 
>> sentence
>> >> > more of information.
>> >> >
>> >> > I like the format of the above, I don't want to just use the 
>> Events
>> >> > category page to list all my Events and content.
>> >> >
>> >> > Any help anyone could throw my way would be greatly appreciated,
>> >> > thanks!
>> >> >
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar




More information about the EventCalendar mailing list