Support

Home Forums Event Espresso Premium Event Meta function display in TooltIp

Event Meta function display in TooltIp

Posted: January 8, 2014 at 12:35 pm


David Whitlock

January 8, 2014 at 12:35 pm

I am using the tooltip feature in my calendar display.
I have added a custom field to the event info using the event meta feature.

I added the info to the registration page using this:
<?php echo do_shortcode(‘[EE_META type=”event_meta” name=”event_ceu”]’); ?>

How do I added the same info to the tooltip?

You can see it at: http://jccevents.net/

Thanks for your help!


Sidney Harrell

January 8, 2014 at 5:05 pm

You can take a look at plugins/espresso-calendar/espresso-calendar.php line 707. You would need to modify that to include your event meta. I believe it should be in $event_meta[‘event_ceu’].


David Whitlock

January 8, 2014 at 7:08 pm

Can you be a little more specific? I am not sure how to include it.

Here is the code on line 707:

$events[ $cntr ][‘tooltip’] .= $show_time && $startTime ? ‘<p class=”time_cal_qtip”>’ . __(‘Event Time: ‘, ‘event_espresso’) . $startTime . ‘ – ‘ . $endTime . ‘</p>’ : ”;


Dean

January 9, 2014 at 1:30 am

Hi,

Below that line, add something like

$events[ $cntr ]['tooltip'] .= '<p>' . $event_meta['event_ceu'] . '</p>';

This would result in the meta value being displayed like so http://take.ms/2jbQ9

Obviously you can modify the code as needed.


David Whitlock

January 9, 2014 at 5:07 am

That did it! Thanks so much for your help.

The support post ‘Event Meta function display in TooltIp’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso