[EventCalendar] how to display date of event on archive page?

Alex Tingle alex at firetree.net
Fri Sep 1 11:50:22 UTC 2006


Hi,

ejm <llizard_ejm at yahoo.com> wrote:
> I am running WP2.0.4 with Event Calendar 3.1._pre11
> 
> On the event category page, I was hoping to show the title and date of
> the event. Right now, it shows the title and date that the event was
> posted.
> 
> Here is a link to the events category: etherwork.net/blog/?cat=4
> The linked page shows titles of the various upcoming events. This
> is the coding:
> 
> ------------------------------
> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
> <small>(<?php the_date(); ?>)</small>
> ---------------------------------------
> 
> that produces the following:
> .......................
> Title of the Event  (posted: Date that the Event was posted)
> .......................

I suggest that you create a special Category template for your event category...

  http://codex.wordpress.org/Category_Templates

..in order that you can change the appearance JUST of the event category. I think you are already doing this, but I thought I'd spell it out, so that everyone knows what you're up to.

Then put something like this into template's loop:

 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
 <small>(<?php ec3_the_schedule(); ?>)</small>

Let me know how you get on. If it works for you, could you post a copy of your category template so that other people can learn from it.

regards,

-Alex (Should be working today, but doing this instead!)


--

On Fri, 01 Sep 2006 07:32:38 -0400
ejm <llizard_ejm at yahoo.com> wrote:

> Please forgive me for bumping this into September and asking this once
> again... I'll rephrase my question and
> 
> On Fri Sep 1 05:20:10 UTC 2006, Alex Tingle wrote:
> >Perhaps I should change the list-welcome boilerplate to describe how to
> >report a problem:
> >
> >  !!ALWAYS INCLUDE A URL!!
> 
> add a URL in hopes of getting a reply.
> 
> I am running WP2.0.4 with Event Calendar 3.1._pre11
> 
> On the event category page, I was hoping to show the title and date of
> the event. Right now, it shows the title and date that the event was
> posted.
> 
> Here is a link to the events category: etherwork.net/blog/?cat=4
> The linked page shows titles of the various upcoming events. This
> is the coding:
> 
> ------------------------------
> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
> <small>(<?php the_date(); ?>)</small>
> ---------------------------------------
> 
> that produces the following:
> .......................
> Title of the Event  (posted: Date that the Event was posted)
> .......................
> 
> What I would like to display instead is the Title and Date of the
> event as well as the date that the event was posted. (Actually, I'd
> love to exclude the last part for the event category but have a very
> tenuous grasp - ie: virtually none - of php coding). I'm guessing that
> non-event category pages will ignore any php coding for the time
> schedule and will simply show the title and the date for each post in
> the non-event categories. 
> 
> How should I alter the following coding on my archive page to
> achieve the desired effect?
> 
> .................................
> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
> <small>- <?php NO_IDEA_WHAT_GOES_HERE(); ?> (<?php the_date();
> ?>)</small>
> ...........................
> 
> I guessed wrong with "ec3_get_schedule();" and "ec3_schedule();"
> 
> Please put me out of my misery. Thank you.
> 
> -EMorris
> 
> P.S. The real reason I would like to do this is for another wp that I
> maintain that has many many events in the event category. (That
> particular wp2.0.4 still uses eventcalendar 3.0.4)
>
-- 
:: 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