[EventCalendar] I want to include some but not all events on the front page

Jonah West jonah at jonahcoyote.com
Thu Jul 23 13:42:18 UTC 2009

Hey Cris,

You should be able to use this in your template to pull in events  
wherever you want:

<?php ec3_get_events('10') ?>

Alternatively, you could also try using get_posts to get them from  
your events category:

<?php global $post;  
					foreach($catposts as $post):
					setup_postdata($post); ?>
   							<div class="news-post">
   							<h3 class="news-header"><a href="<?php the_permalink(); ?>"  
id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h3>
   							<span class="date">Posted: <?php the_time('F jS, Y'); ?></ 
   							<div class="post-content"><?php the_excerpt(); ?></div>
   							<div class="entry-utility">
								<span class="cat-links">Posted in <?php the_category(',',  
'single'); ?></span>
								<span class="meta-sep">|</span>
								<span class="tag-links"><?php the_tags('Tagged ', ',',''); ?></ 
								<span class="meta-sep">|</span>
								<span class="comments-link">Comments closed</span>
								<span class="meta-sep">|</span>
								<?php edit_post_link('Edit', '', ''); ?>
   					<?php endforeach; ?>

The nice thing about get_posts is you can fully customize what is  
displayed and the markup.

- Jonah

On Jul 23, 2009, at 8:23 AM, Cris McConkey wrote:

> Is there a modification that will allow me to have some, but not  
> all, events appear as normal posts?
> Since I want some but not all events to appear on the front page, I  
> have to duplicate posts which is tedious.
> Thanks,
> Cris
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar

More information about the EventCalendar mailing list