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
Simple Price Shortcode for the actual event | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Simple Price Shortcode for the actual event

Simple Price Shortcode for the actual event

Posted: August 26, 2012 at 3:32 am

Viewing 2 reply threads


Chris

August 26, 2012 at 3:32 am

Hi,

I purpose to use an event I have created once as a draft for future events (by using the “duplicate event” function).

In the event description I want to display the price of the actual event. So i need a shortcode that simply shows the price of the actual event whenever I set up a new one. I understand that I can reach that goal by using
[EVENT_PRICE event_id=”X” number=”0″]
and always modifying the actual event no. when composing a new event.

But I actually want to avoid these manual step. The shortcode should just automatically show the price of the new event.

I tried [EVENT_PRICE] and [EVENT_PRICE number=”0″] in a new event but that does not work.

Any suggestion?


Josh

August 26, 2012 at 4:18 pm

You could modify the registration_page_display.php template to include this. Look for the code that displays the description and add something like this near it:

<?php echo do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]');?>

See these references for more info: http://staging.eventespresso.com/wiki/shortcodes-template-variables/#event-price http://staging.eventespresso.com/wiki/put-custom-templates/


Chris

August 29, 2012 at 12:14 am

Yes, that works!

Thank you.

Viewing 2 reply threads

The support post ‘Simple Price Shortcode for the actual event’ 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