Posted: June 13, 2018 at 6:44 pm
|
Hi, I’m using ESPRESSO_MY_EVENTS template=simple_list_table on a page and I’d like to replace the Ticket column with the Event Start Date. I’ve got the loop-espresso_my_events-simple_list_table.template.php file set up in my theme’s child folder, and I can see the Ticket column <th>, but I can’t figure out how to change it so the event date displays. I tried just replacing the Ticket <th> section with this:
…but that didn’t work. Is it more complicated than that? |
|
Ooops… actually I replaced that code with this…
|
Hi there, In short the above changes the ‘Ticket’ header, to ‘Dates & Times’. I tested your code on a test site and it worked as it should – http://take.ms/JMBND To edit the content of the column you need to edit the Lines 14-16 will have:
You’ll need to change that to pull the datetime(s) linked to the ticket and output the date/time from that. Are all of your tickets only assigned to a single datetime or can a single ticket be assigned to multiple datetimes? |
|
|
Yes, for our setup, all tickets are assigned to a unique datetime. I just need to know what the variable is, and is it as simple as switching out “ticket” for “[variable]”? E.g. below…?
|
Not really no. There’s no
|
|
|
That’s perfect. Thanks Tony! |
You’re most welcome 🙂 |
|
The support post ‘Change out Tickets column for Event Date in My Events list’ 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.