Support

Home Forums Custom Files Add-on (EE3) espresso table template file

espresso table template file

Posted: June 28, 2012 at 2:42 pm

Viewing 8 reply threads


alex cates

June 28, 2012 at 2:42 pm

hi, i am trying to use this template file to display my events in a very basic table and it works for what i want as a full list of all my events, but is there anyway to make it so it only displays the events in one category? the shortcode file says it is but when i try to do use it, it just displays all the events, any help would be greatly appreciated


Josh

  • Support Staff

June 28, 2012 at 2:56 pm

Try:

[ESPRESSO_TABLE category_identifier=”awesome”]

If your category isn’t named “awesome” you’ll need to change that part.


alex cates

June 28, 2012 at 3:35 pm

tried editing the normal template display file and i can again get all the events to display in a table, but i when i use the shortcode for a category it doesnt display anything


Josh

  • Support Staff

June 28, 2012 at 3:40 pm

Hi Alex,

Which file are you editing?
Which shortcode are you using?
Which version of Event Espresso?


alex cates

June 28, 2012 at 3:47 pm

sorry, i missed your first response before replying again,
your first response fixed it,
the short codes file included in the custom files add on says the short code should be [ESPRESSO_TABLE category_id=”awesome”]
switching id to identifier did the trick

thanks so much, you really are great


gkordek

July 26, 2012 at 6:02 am

Hello!

I have the same problem with ESPRESSO_TABLE shortcode. The thing is, even though I provided category_id (and triple-checked spelling), I still get list of events from all categories. I went to espresso_table.php and put var_dump($category_identifier) in line 20 to see what’s in there, and sure enough it’s null, but I don’t know why.


gkordek

July 26, 2012 at 6:15 am

Hello again! I also did not see your first answer, but solved the problem myself. The thing is, according to the example shortcode provided in comments at the top of espresso_table.php, the parameter is “category_id”, so I copied it, changed the category identifier and of course, it didn’t work. I guess it’s not a bug, but it’s misleading and solving it was really frustrating…


Roland

August 26, 2012 at 8:34 am

Hi, same here, all events displayed in the table – not filtering through category..

so I replaced

[ESPRESSO_TABLE category_id="..your-category.."]

to

[ESPRESSO_TABLE category_identifier="..your-unique-category-identifier"]

and this time it worked!!!


Roland

August 26, 2012 at 8:38 am

also line 99 – small bug – even the event was sold out – still shows “Register” button

if ( $open_spots < 1 ) { $live_button = 'Closed';  }

changed to

if ( $open_spots  which I the changed to display "Fully booked"
Viewing 8 reply threads

The support post ‘espresso table template file’ 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