Support

Home Forums WP User Integration my events short code use

my events short code use

Posted: December 13, 2017 at 9:42 am


Phil Stott

December 13, 2017 at 9:42 am

Hi

is it possible to list just current or up coming events using the short code
[ESPRESSO_MY_EVENTS]
I don’t want to show past events.

Also how do I get registration details for logged in members to auto fill ?

Thanks

Phil


Josh

  • Support Staff

December 15, 2017 at 12:14 pm

Hi Phil,

You’ll find an answer to your first question in this other topic:

https://eventespresso.com/topic/any-way-to-hide-expired-events-in-the-espresso_my_events-shortcode/

Also how do I get registration details for logged in members to auto fill ?

The First Name, Last Name, and Email should automatically auto-fill if they registered for another event prior to now. If you’re looking to auto-fill more of the fields, you can add some code to a custom plugin that will grab the answers from previous registrations and apply them to the current registration form. Here are two code examples that show how to 1) add Address info and 2) add answers to custom questions:

1)
https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/jf_filter_address_answer_for_wpuser.php

2) https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/mn_wp_user_addon_save_custom_answers_too.php

You can add the above code examples to a functions plugin, then activate the plugin to enable its functionality.

The support post ‘my events short code use’ 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