Support

Home Forums WP User Integration multi tickets and shortcode

multi tickets and shortcode

Posted: January 12, 2018 at 1:27 am


Mrakor

January 12, 2018 at 1:27 am

i used
[ESPRESSO_MY_EVENTS] using Temple “simple_list_table”
but it when users register multi tickets from one account, it didn’t show the other tickets, its show only ticket related to account owner (frist ticket)
so may be user need to show

is their any method, to let this shorcode show all ticket created by user, for all registration ?


Tony

  • Support Staff

January 12, 2018 at 3:48 am

Hi there,

The ESPRESSO_MY_EVENTS section was designed to only show the registrations for the current user, registrations made by that use for other would not show as you’ve found.

A while back I created a template for the default output of the shortcode that pulls in all registrations and shows those, you can find that here:

https://gist.github.com/Pebblo/54707c59d09185e16e1e15f35ba3765c

The code that brings in all registrations is this:

https://gist.github.com/Pebblo/54707c59d09185e16e1e15f35ba3765c#file-content-espresso_my_events-event_section-template-php-L10-L32

If you add that file to your themes root directory is should alter the output to use all registrations for you.


Mrakor

January 12, 2018 at 4:28 am

it worked, but i will try to modify it to work with simple_list_table, so i need to make it easy to each user to find the different ticket for them


Tony

  • Support Staff

January 12, 2018 at 5:34 am

It’s not going to be as easy with the simple_list_table as it works differently, you’ll possibly need some additional filters in the add-on to allow for your use case so you can alter the query used to pull in the registrations.

The support post ‘multi tickets and 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