[EventCalendar] custom fields in Upcoming Events widget

Damon Timm damontimm at gmail.com
Thu Mar 26 01:02:05 UTC 2009


This may help:

http://blog.damontimm.com/how-to-retreive-custom-field-data-in-a-wordpress-post/

On Tue, Mar 24, 2009 at 7:11 PM, Charles Anthony
<charlesanthony at ottawalivemusic.com> wrote:
> I want to customize the Upcoming Events widget so that it calls WP custom
> fields associated with the post.  How would I do that?
>
>
> For instance, right now, I am using:
>
> <?php if(get_post_meta($post->ID, 'image_key', true))
>  {
>    $values = get_post_custom_values("image_key");
>    $image_key = $values[0];
> ?>
> <img src="/wp-content/images/<?php echo $image_key; ?>" title="<?php
> the_title(); ?>" alt="<?php the_title(); ?>" />
> <?php } ?>
>
> to automatically display an image in each post.  I would like to have
> something similar inserted into the Upcoming Events widget for each event.
>
>
> The current location of the site is:
> http://www.ottawalivemuscscene.com/
>
>
>
>
>
> Charles Anthony
>
>
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>



More information about the EventCalendar mailing list