Support

Home Forums Custom Files Add-on (EE3) Espresso_table.php not filtering by Category correctly

Espresso_table.php not filtering by Category correctly

Posted: October 2, 2012 at 1:33 pm


rmpower

October 2, 2012 at 1:33 pm

I am required to use the code to embed the custom table onto our site. However, the shortcode is pulling all events and not just the specified category.

Both return both all categories. I can PM the link to the page in question. Thanks


Dean

October 3, 2012 at 5:25 am

Hey

Can you link the code you are using and if you dont want to link the website here, feel free to email it to support@eventespresso.com, just link to this forum post in the email please.


Josh

  • Support Staff

October 3, 2012 at 10:34 am

Hi there,

Here’s the code from the email:

<?php echo do_shortcode('[ESPRESSO_TABLE event_category_id="demo"]'); ?>
<?php echo do_shortcode('[ESPRESSO_TABLE category_id="demo"]'); ?>
<?php echo do_shortcode('[EVENT_ESPRESSO_CATEGORY event_category_id="demo"]'); ?>

Instead, you can try this:

<?php echo do_shortcode('[ESPRESSO_TABLE category_identifier="demo"]'); ?>

The support post ‘Espresso_table.php not filtering by Category correctly’ 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