Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Event Meta function display in TooltIp | Event Espresso - Staging Server

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

Viewing 4 reply threads


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

  • Support Staff

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

  • Support Staff

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.

Viewing 4 reply threads

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