Support

Home Forums Event Espresso Premium Shortcode on published post

Shortcode on published post

Posted: September 4, 2013 at 1:43 pm


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

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

  • Support Staff

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:

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


Klaus M

September 6, 2013 at 2:24 am

RESOLVED

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