[Plugin: All-in-One Event Calendar] Custom FIelds in Event View
-
I’ve been round and round trying to place the value of a custom field from an event entry into the event view. I can’t seem to call it and must be doing something wrong with the php or am missing an intricacy of Ai1ec.
An example event page is: http://internationalfocusnc.org/ai1ec_event/ritmo-latino/?instance_id=
My code is:
<tr> <?php if( $website ): ?> <th scope="row" class="ai1ec-cost"><?php _e( 'Website:', AI1EC_PLUGIN_NAME ) ?></th> <td class="ai1ec-cost"><?php echo get_post_meta($post->ID, 'website', true); ?></td> <?php endif ?> </tr>
The word “Website:” displays on the left, so I know I’m in the right place, but no matter how many post_meta combinations I try, I can’t get it to call the value for $website. I can get call the $key and $value using the_meta(), so I know the post meta is there.
Can anyone help with this?
http://wordpress.org/extend/plugins/all-in-one-event-calendar/
- The topic ‘[Plugin: All-in-One Event Calendar] Custom FIelds in Event View’ is closed to new replies.