[EventCalendar] I want to include some but not all events on the
jonah at jonahcoyote.com
Thu Jul 23 13:42:18 UTC 2009
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):
<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>
<span class="cat-links">Posted in <?php the_category(',',
<span class="tag-links"><?php the_tags('Tagged ', ',',''); ?></
<span class="comments-link">Comments closed</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.
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.
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
More information about the EventCalendar