[EventCalendar] how to get event dates to appear on archive page
ejm
llizard_ejm at yahoo.com
Thu Jul 27 21:55:02 UTC 2006
When one chooses the "event" category from the sidebar, a page appears
showing the title and date of any upcoming events.
This is what I had on my archive.php in the wp theme folder:
......................................
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
<small>(<?php the_date(); ?>)</small></li>
...........................................
With previous versions of the event calendar, this would put the date
of the event into the brackets beside the title. But now with the beta
version, the date that the event was posted is placed inside that
bracket rather than the event date itself. To vaguely fix things, I
changed the coding to:
......................................
[...] <small>(posted: <?php the_date(); ?>)[...]
...........................................
But it would be great if I could also add the date of the event (which
I'm pretty certain would only appear for posts that are in the event
category). I've stared at template-functions.php in the event calendar
folder to try to figure out what "%s" stands for. Only knowing enough
about php to get me in trouble, it wasn't really a surprise that both
of the following failed:
<?php ec3_the_schedule; ?> (posted: <?php the_date(); ?>)
<?php ec3_get_schedule(); ?> (posted: <?php the_date(); ?>)
What coding should I put into my theme folder's archive.php so that
the event date will appear beside the title of the post? (I hope that
question made sense.)
-emorris
P.S. I'm running WP2.0.2 with Event Calendar 3.1._pre11
More information about the EventCalendar
mailing list