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

Dennis Schmitz schmitz.dennis at googlemail.com
Thu Jul 23 13:53:03 UTC 2009


Hi, i search for the same funkction.

Is it posible to insert an option in the post-editor. So it's easyer
to manage what post show on frontpage (index.php)

ps
sorry for bad english from me. I'm from germany.


LG
D. Schmitz



2009/7/23 Jonah West <jonah at jonahcoyote.com>:
> 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;
> $catposts=get_posts('category=1&order=DESC&orderby=date&numberposts=10');
>                                        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'); ?></span>
>                                                        <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>
>                                                                <span
> class="meta-sep">|</span>
>                                                                <span
> class="comments-link">Comments closed</span>
>                                                                <span
> class="meta-sep">|</span>
>                                                                <?php
> edit_post_link('Edit', '', ''); ?>
>                                                        </div>
>                                                        </div>
>                                        <?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
>
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>



-- 
Mit freundlichen Grüßen

Dennis Schmitz

Aufgrund der Rechtschreibreform leidet der Autor an einer umfassenden
Verwirrung. Daher sind Fehler zu entschuldigen



More information about the EventCalendar mailing list