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!
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
– …
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:
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.
Support forum for Event Espresso 3 and Event Espresso 4.