Support

Home Forums Event Espresso Premium Event table code

Event table code

Posted: October 30, 2019 at 7:35 am


cellbotics

October 30, 2019 at 7:35 am

I want the table to say in this order:
Event Location Register # of seats left
I need to only show the most recent 6 upcoming courses, sold or not, so they can see the ones sold out still in the list.
I also need to be able to filter by multiple categories because some courses I want to show on different pages and not here but multiple categories in some tables

Can someone send me a string code for that and I can add and change as needed?

Screen shot: https://snipboard.io/Iy7xch.jpg


Tony

  • Support Staff

October 31, 2019 at 4:34 am

Hi there,

To do what you are trying to do you would need a custom template the event table add-on. IF you are comfortable with HTML, CSS and PHP you can copy the default template from the add-on into your child theme and customize it there, that template will then be used in place of the original.

I can give you some details on how to do that, however, we (Event Espresso Support) can not write these customizations for you so if you are not comfortable with the above we recommend contacting a developer who can customize the template to suit your needs.

If you are not working with a developer already, we recommend the folks at codeable.


cellbotics

October 31, 2019 at 7:34 am

I own the Table Add-on… without me having to do all of that is there any part of it that you can explain to me how I can add to this string? This is the current table I have on my page:

[ESPRESSO_EVENTS_TABLE_TEMPLATE order_by=start_date limit=7 category_filter=false table_search=false template_file=espresso-events-table-template-toggle.template.php reg_button_text=Register]

I need to mainly be able to include select categories, location, and if possible seat count but if not then that’s ok


Tony

  • Support Staff

October 31, 2019 at 7:48 am

I own the Table Add-on…

I know you own the add-on 🙂

But the add-on doesn’t do what you want it to do so you need to customize the template to suit your needs.

I need to mainly be able to include select categories, location, and if possible seat count but if not then that’s ok

Do you mean allowing the user to select categories to display? If so remove category_filter=false

To specify a specific category to display on the table you can use category_slug=your-event-category-slug, it doesn’t support multiple categories at this time.

The location should be included in the dropdown when you click on the event, but if you want it on the main column, you’ll need a custom template. Or there is another template included in the add-on that has it by default, try removing template_file=espresso-events-table-template-toggle.template.php from the shortcode, does that work for you?

Seat count will require custom code is added to the template.


cellbotics

October 31, 2019 at 7:51 am

Ohhh ok I see… I’m always worried to let someone into the site to do any work, I had someone before place things on my site for some other purpose and had to pay to get them removed, I hired them from Upwork… do you know any code people you can recommend and trust that won’t cost a fortune for something like this?


cellbotics

October 31, 2019 at 8:22 am

So does this look right? I can find away around the category issue

[ESPRESSO_EVENTS_TABLE_TEMPLATE order_by=start_date limit=7 category_slug=all-courses table_search=false reg_button_text=Register]


Tony

  • Support Staff

October 31, 2019 at 9:01 am

Sure, that will order by start date, limit the results to 7, show events in all events category, disable the table search filter and change the registration button to ‘Register’.

reg_button_text=Register shouldn’t be needed however as the default value should already be ‘Register’.

The support post ‘Event table code’ 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