[EventCalendar] custom fields in Upcoming Events widget

Charles Anthony charlesanthony at ottawalivemusic.com
Thu Mar 26 09:46:18 UTC 2009


Thank you, Damon.  Your reference post looks exactly like what I need.

I do not have a lot of experience customizing themes.  So, I am not
certain where the first block of code belongs.  I think it belongs in a
custom functions.php file.  Is that correct?  If that is correct, I will
continue to research on my own to learn how to implement that.
If that is incorrect, can you nudge me in the right direction?


Thanks again for the help!
Ch. A.




> 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
>>
>


Charles Anthony
"Ottawa Live Music"
the only interactive live music radio show
http://www.ottawalivemusic.com





More information about the EventCalendar mailing list