Support

Home Forums Event Espresso Premium Show my tickets from 3 sites

Show my tickets from 3 sites

Posted: April 28, 2021 at 8:57 pm


TTBC

April 28, 2021 at 8:57 pm

Hi

We have 3 sites with a USER having many tickets from the different sites.
Australia, New Zealand, Singapore

On the profile page which is generic across all the sites (only due to the current limitations), I have added the Shortcode [ESPRESSO_MY_EVENTS simple_list_table] to show my events I am registered for. But I was wondering how I show the events for all 3 of the following sites

  • buscircle.com
  • nz.buscircle.com
  • sg.buscircle.com


Tony

  • Support Staff

April 29, 2021 at 2:21 am

Hi there,

Currently, you can’t pull the registrations from other sites, at least not without custom development.

I’m guessing the above is running on MultiSite rather than 3 separate installs?

Just to note and I’m guessing you typed the above shortcode by hand but just to be sure, this shortcode:

[ESPRESSO_MY_EVENTS simple_list_table]

Is not correct and wouldn’t load the simple list table template but rather the default one, you need to add the ‘template’ parameter, like so:

[ESPRESSO_MY_EVENTS template=simple_list_table]


TTBC

May 2, 2021 at 5:57 pm

Yes this is a multisite envrioment.

So how would I pull the data from each multisite even if it is 3 separate pulls one from each site that is fine the layout will be all good.


Tony

  • Support Staff

May 4, 2021 at 5:46 am

Officially Event Espresso does not support MultiSite so we don’t have any methods build into EE4 for this. You’ll need some custom development with your own queries, likely using something like switch_to_blog() to loop over your MS sites and re-run the queries.

Or even just looping over the sites and running the [ESPRESSO_MY_EVENTS] shortcode might work, although that would then output in 3 sections.

Some examples of doing this can be found here:

https://wordpress.stackexchange.com/questions/257024/get-posts-from-network-multisite

You must be logged in to reply to this support post. Sign In or Register for an Account

Do NOT follow this link or you will be banned from the site!