Home Forums WP User Integration WP User Integration shortcode

WP User Integration shortcode

Posted: April 11, 2016 at 7:30 am


April 11, 2016 at 7:30 am


I’m using WooCommerce and Events Espresso together one for merchandise and one for events.

WooCommerce directs all users to their template page my-account.php. I’ve made a copy inside my child theme and have added the Events Espresso shortcode in the php file:

<?php echo do_shortcode(“[ESPRESSO_MY_EVENTS]”); ?>

It ALMOST displays fine, however the styling of the form has been lost and the javascript seems to be inactve. Do you know why this is and if there is a way to merge both the Events Espresso user profile page with the WooCommerce Account page?



April 11, 2016 at 7:32 am

Shortcode in MyAccount

However the shortcode works in a new seperate page…


  • Support Staff

April 11, 2016 at 1:37 pm

Hi there,

The reason that the scripts and styles aren’t loading there is because Event Espresso will only load them if it detects the short code added to the_content. Otherwise they don’t load.

You can add the following to your my-account.php template to make sure they load for that page:

wp_register_style( 'ees-my-events', EE_WPUSERS_URL . 'assets/css/ees-espresso-my-events.css', array( 'espresso_default' ), EE_WPUSERS_VERSION );
wp_register_script( 'ees-my-events-js', EE_WPUSERS_URL . 'assets/js/ees-espresso-my-events.js', array( 'espresso_core' ), EE_WPUSERS_VERSION, true );
wp_enqueue_style( 'ees-my-events' );
wp_enqueue_script( 'ees-my-events-js' );


April 12, 2016 at 7:40 am

Thank you, Code works and now I can have a common page between WooCommerce and Events Espresso. 🙂

The support post ‘WP User Integration shortcode’ 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