[EventCalendar] Single Category Page and code/tag

Bert Mahoney berchman at mac.com
Thu Mar 15 05:25:56 UTC 2007


Hi,

Thought I would share what I found.

I wanted to display all future calendar events on a page lisiting  
soonest event on top and older events following.

I didn't want other posts mingling in. I found a WP plugin that will  
allow you to create a single-category template and will allow you to  
have just posts in that category (calendar category) show up on this  
page:

http://tinyurl.com/ytk46s

The pages is working however problem is now when the items are  
displayed they show their posting date NOT their event date. Here is  
the code that generates each listing in my template:


<?php while (have_posts()) : the_post(); ?>
	<div class="post">
		<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"  
rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php  
the_title(); ?></a></h3>
		
 >>>	<small><?php the_time('l, F jS, Y') ?></small>
				
		<div class="entry">
			<?php the_content() ?>
		</div>
		
		<p class="postmetadata">Posted in <?php the_category(', ') ?>

	</div>
	
<?php endwhile; ?>


The code marked with the ">>>" is what generates the posted date.
I need the event date. I have looked online at the documentation and  
was thinking I could use

%DATE% - The date of the post.

but I don't know how to use that within the constraints of the loop  
above.

Anyone have an idea how I can change that one line of code to get  
what I need?

Thanks,
Bert



More information about the EventCalendar mailing list