Support

Home Forums Event Espresso Premium ESPRESSO_TABLE shortcode ignores category ID and quantity

ESPRESSO_TABLE shortcode ignores category ID and quantity

Posted: June 7, 2013 at 8:21 am


Craig Kirkwood

June 7, 2013 at 8:21 am

Hi guys,

I’m trying to create a list of events for a given category but I’m finding the Espresso_Table shortcode ignores both the category and quantity and shows all events. And I can’t get the ESPRESSO_MOVIE_TABLE shortcode to return any events at all…

I’m using the Custom Files add-on and I’ve loaded the Templates and Includes/Functions scripts in the correct locations.

This is a new installation in dev mode. I’m running EE 3.1.33 and WP Version 3.5.1 with Calendar, Multi Event and Recurring Event plugins all active.

So, for example:

[ESPRESSO_MOVIE_TABLE max_days=”30″ qty=”3″ category_id=”dynamic” ] – returns nothing.

[ESPRESSO_TABLE max_days=”30″ qty=”3″ category_id=”dynamic” order_by=”state”] – returns all events regardless of category.

I can see other problems in the forum  but not quite this I don’t think…

Page in question: http://amcsearch.moonlet.co/current-courses/

Tks,

Craig K


Josh

  • Support Staff

June 7, 2013 at 11:01 am

Hi Craig,

The usage example in the espresso_table template is kind of busted. To do what you’re looking to do it would be:

[ESPRESSO_TABLE max_days=”30″ limit=”3″ category_identifier=”dynamic” order_by=”state”]

the parameters it uses are “limit” and “categeory_identifier”.


Craig Kirkwood

June 7, 2013 at 12:05 pm

Josh,

Brilliant. Thanks! Just wondering about the other problem though? I mean the ESPRESSO_MOVIE_TABLE shortcode doesn’t seem to work at all 🙁

Thanks again for your excellent support!


Josh

  • Support Staff

June 7, 2013 at 2:23 pm

Hi Craig,

Sorry about that one. Yes, the ESPRESSO_MOVIE table template needs to be updated. It’s actually been fixed in dev but there’s a few holdups on getting the custom files add-on released on to a new version.

What you can do is open up movie_list.php and comment out or delete lines 35, 37, 38, 39. So you’d start with:

  ob_start();
  espresso_get_movie_tabe($sql);
$content = ob_get_contents();
ob_end_clean();
return $content;

will become:

espresso_get_movie_tabe($sql);

The support post ‘ESPRESSO_TABLE shortcode ignores category ID and quantity’ 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