[EventCalendar] how to show EC event with full info on home page
Alf Haakon Lund
alf at galleritexas.no
Mon Jun 25 20:06:41 UTC 2007
Hi there,
I'm running a site similar to yours at http://aas-stasjon.no/
(Norwegian only) and was struggling with the same problem. Mark Naylor
pointed me in the right direction in this post:
http://penguin.firetree.net/pipermail/eventcalendar/2007-June/001986.html
What I did was make an extra loop for my event category on top of the page:
<div id="next_event">
<h2>Neste arrangement</h2>
<?php query_posts('ec3_after=today&showposts=1'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h3><a href="<?php the_permalink() ?>" rel="bookmark"
title="Permanent lenke til <?php the_title(); ?>"><?php the_title();
?></a></h3>
<div class="entry">
<?php the_content('Les resten av dette innlegget »'); ?>
</div>
<p class="right"><?php edit_post_link('Rediger'); ?></p>
<h4>Sjekk kalenderen for andre arrangement!</h4>
</div> <!-- end div "post" -->
<?php endwhile; ?>
<?php else : ?>
<h4 class="center">Ingen kommende arrangement</h4>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div> <!-- end div "next_event" -->
Just put your exhibit category where I have event and you should be
moving in the right direction.
Regards, Alf
Den 25-06-2007 skrev Melissa Snyder:
> Hi All,
>
> First of all I want to thank everyone involved for a wonderful and
> incredibly useful plugin - it's exactly what I need!
> However, I've been looking through the prior couple of months posts
> and have not been able to figure out a way to do exactly what I want.
> I have an art gallery that uses the home page to display information
> about the current exhibit, with a link to a full schedule. Easy enough
> using static pages and template pages, but I'd like the home/ index
> page to display all the information from the blog post - all the
> description, the image, etc, not simply an Event title with a link. I
> saw other earlier posts with similar code to what I've got inserted
> in the template for the static page ( <?php ec3_get_events (1) ?>))
> but I can't figure out how to get all the extra information from the
> original post to display.
>
> Here's what I want to display as the home page:
> http://pegasusgalleryvt.com/wordpress/?p=11
>
> and here's what I've got:
> http://pegasusgalleryvt.com/wordpress/?page_id=19
>
> I'm using WP 2.2.1, EC 3.1.0.
>
> Can anyone please help me?
>
> Thanks,
>
> Melissa
>
>
> Melissa Snyder
> Barleywine Graphics
> webmaster at barleywinegraphics.com
> www.barleywinegraphics.com
> 802.263.9556
More information about the EventCalendar
mailing list