Support

Home Forums Event Espresso Premium ESPRESSO_MY_EVENTS shortcode not loading events

ESPRESSO_MY_EVENTS shortcode not loading events

Posted: January 17, 2017 at 1:27 pm

Viewing 9 reply threads


modernearth

January 17, 2017 at 1:27 pm

when I use the [‘ESPRESSO_MY_EVENTS’] in my code, it stopped loading events they are registered for. Instead I just get the ‘You have no events yet’ label displayed even though I know they are registered for an event. Any thoughts on what might be causing this?


Josh

  • Support Staff

January 17, 2017 at 1:34 pm

You can check their user profile page for a list of events. You go to WordPress > Users, then click on the username. Is there a list of events on their user profile page?


modernearth

January 17, 2017 at 1:47 pm

From what I can tell, users who have paid they events aren’t appearing inside their WordPress > Users page, but ones where it is pending payment, it does show up in there. Tested 3 of each and got same result each time.


Tony

  • Support Staff

January 17, 2017 at 2:12 pm

I’ve been unable to reproduce this on my test sites.

What steps did you take to test?

Note the registrations will only show in the my events section if they have been assigned to the EE contact for the current users, that means the answer to the ‘Personal Information’ question group (First name, last name, email) matched the EE Contact details for the current user during the registration.

So are you changing the person info questions when testing?


modernearth

January 17, 2017 at 2:17 pm

Alright if Personal Information must match that may be causing it. I will see if that fixes things. And to test, I had got the email used by a user that was registered, and used the email to search for the User and clicked on them.


modernearth

January 17, 2017 at 2:18 pm

Is there a hook or filter that allows it to load based only on email, and not on name or anything else? Or a setting in the backend somewhere?


Tony

  • Support Staff

January 17, 2017 at 2:31 pm

There’s no setting for this and there are multiple hooks within the WP Users plugin however to do what you are requesting would basically need to replace most of how the current add-on works.

The add-on is not searching for name, email etc and displaying matching registrations, its pulling the EE Contact that is assigned to the user then looping over all over the registrations assigned to that contact. The registrations are only assigned to the contact if the personal info matches the contact during registration.

Assigning registrations to the contact that don’t match the contact is not currently available within EE and would likely have unexpected results.

So you need to pull all registrations based on the current users email address and display them within my events? If so that’s a completely different method to how it currently pulls the data in.


modernearth

January 17, 2017 at 2:38 pm

Yes that is what I needed. Since the email is attached to the user, but since we work with local governments and heads of offices are in constant change, the persons name associated with the email is constantly changing. We noticed the issue since some who registered screwed up her last name and wanted to change it but noticed it didn’t appear in her events.. Is there a way, not using the shortcode but already been used by you or someone else, to get the registrations based on strictly email? if not we will have to rethink how we want to deal with the registrations and I don’t think our client will like that much.


modernearth

January 17, 2017 at 3:00 pm

Also we just noticed that the shortcode isn’t loading ones that display inside WordPress > Users onto the front end with the shortcode


Tony

  • Support Staff

January 18, 2017 at 7:29 am

Is there a way, not using the shortcode but already been used by you or someone else, to get the registrations based on strictly email?

I don’t believe so, but will check with our developers.

Also we just noticed that the shortcode isn’t loading ones that display inside WordPress > Users onto the front end with the shortcode

I’m not sure what this means, can you provide further details please?

Viewing 9 reply threads

The support post ‘ESPRESSO_MY_EVENTS shortcode not loading events’ 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