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
Shortcode on published post | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Shortcode on published post

Shortcode on published post

Posted: September 4, 2013 at 1:43 pm

Viewing 4 reply threads


Klaus M

September 4, 2013 at 1:43 pm

I would like to use EE Shortcodes on that (regular) post that is published by EE when a new event has been created. How can this be done? Thanks for your help!


Jonathan Wilson

  • Support Staff

September 4, 2013 at 2:18 pm

Hi Klaus,

So that I can a little more of an idea about what you are expecting, can you explain which shortcodes you are wanting to use?

You will either need to include the shortcode in the event description, or edit the post manually after it has been created when publishing the event.


Klaus M

September 4, 2013 at 2:48 pm

I have to use these in my php-template file, so using shortcodes in the <?php the_content(); ?> is not an option i think. i’d like to show
– date(registration_end)
– venue_title
– register button/form
– …


Josh

September 5, 2013 at 7:20 am

Hi Klaus,

You can use shortcodes in the template by wrapping them in a do shortcode. If you’re using the event_post template there are already variables that are set that you can use instead of shortcodes.

So for your example, you can use $venue_title and $reg_end_date.

To make a registration form display on the post you can the ESPRESSO_REG_FORM shortcode wrapped in a do_shortcode:

http://staging.eventespresso.com/wiki/shortcodes-template-variables/#reg-form


Klaus M

September 6, 2013 at 2:24 am

RESOLVED

Viewing 4 reply threads

The support post ‘Shortcode on published post’ 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