Home Forums Event Espresso Premium EE4: [ESPRESSO_MY_EVENTS] – Not showing all items

EE4: [ESPRESSO_MY_EVENTS] – Not showing all items

Posted: March 30, 2016 at 5:40 pm

March 30, 2016 at 5:40 pm


I’d like to show all events for a user on one page, without any pagination. It appears that only 6 are showing up for my users. Is there any way to do this?



  • Support Staff

March 31, 2016 at 2:28 am

Hi there,

Are you just using the [ESPRESSO_MY_EVENTS] with no other parameters set on the shrotcode?

The shortcode has the per_page attribute that you can pass a value for the amount of posts per page to display but by default this is not set.

For example [ESPRESSO_MY_EVENTS per_page=20] would show 20 events.

But [ESPRESSO_MY_EVENTS] should show all events (which may cause a timeout if you have a high number of events).

March 31, 2016 at 11:03 am

I don’t have any per_page parameters but I think I figured out the issue. With help from Josh on your team, I had turned off the auto-fill feature so that users could change the Attendee 1 information. This is because many parents (who are the users) will be signing up for their kids. It is important to show the Kid’s names in this field to avoid any confusion on who is attending the event. However, this has had the side effect of no longer showing the user’s events under [ESPRESSO_MY_EVENTS]. Is there any way around this? This will be a big problem for my clients… ack.


  • Support Staff

March 31, 2016 at 2:28 pm

There are a few ways around this. The easy way is change the setting so that the contact data is synced. This way Event Espresso will not make a new contact when they fill out a reg form and input a different name for the first and last name fields. (instead, then new name will sync to the contact). This might be the best way forward so you’ll avoid adding all of the extra contacts.

The other way around this is to build out a different short code that’s based off of the [ESPRESSO_MY_EVENTS] short code and instead of looping through the contacts, you loop through the user_ids and pull in all of the registrations, basically ignoring the contacts.

March 31, 2016 at 3:32 pm

Thanks Josh.

I still would need the user’s first and last name to stay the same (the parent’s name) so the auto sync probably won’t work for me.

For the shortcode, would that be something I could hire you or someone on your team to do? I know a little php and WP API, but that is a little out of my depth.

March 31, 2016 at 3:45 pm

Actually I don’t need it to be a shortcode, I’m just displaying the user’s events on a custom template. When a user registers with different Attendee 1 information, and autosync turned off, would it save to their user account or no? If it does, maybe I can do a query by their user ID? Not really sure how to do this.


  • Support Staff

March 31, 2016 at 4:14 pm

Hi there,

Since we’re not able to take on customization work at this time, I can recommend contacting one of the developers listed on this page for a quote:

April 1, 2016 at 12:11 pm

Thanks Josh. I ended up trying to work within the plugin parameters and came up with an alternate solution.

I am using jquery to modify the registration form. So Attendee 1 has autosync and autofill turned back on and I moved those fields into a new fieldset called “Parent Info.” This way their user info will remain intact and will still display on the [ESPRESSO_MY_EVENTS] shortcode.

I then added a new question group for Child First/Last and will only select that question group for the Primary Registrant. That information now displays in the Attendee 1 fieldset so it looks like that is the Attendee 1 information.

Then on the Thank You page, I’m removing the Attendee listing in the registration details template (because it shows the parent as Attendee 1 which is confusing). I am showing the first row (Attendee 1) but have renamed the heading “Member Name” which shows the Parent’s name. I am hiding all other attendee names to avoid confusion. I’ve also added a new column “# of Attendees” to give the user a little more info. They can also always go back to “View All Attendee Information” if they want to see the names.

One downside to this is on the Dashboard under Registrations, it looks a little confusing because Attendee 1 is always showing the Parent’s name so they’ll have to look at the custom questions section to get the child’s name. Same thing goes for the CSV export. But this is a much cheaper fix than hiring a developer and the main concern for my client was the user experience for their members.

So I think this will work and wanted to share in case anyone else comes across this same issue.

The support post ‘EE4: [ESPRESSO_MY_EVENTS] – Not showing all items’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by 4 years, 3 months ago ago

Topic Tags


This topic is:
Do NOT follow this link or you will be banned from the site!