Easy Tables and support for shortcodes

Easy Tables for Visual Composer allows you to use only text content, but shortcodes are not processed. We have a working solution.

Tips: Easy Tables Shortcodes

Easy Tables is a table manager for Visual Composer that allows you to create and manage tables with drag and drop interface. Main difference between tables inserted through TinyMCE inside VC Text Block is that Easy Tables use standalone block.

Currently, only text can be inserted as content of cells, and shortcodes are not processed. So, we have a solution for that lack (until author implement this functionality to original plugin).

Easy Tables hack

It’s really easy. Simply open plugins file /wp-content/plugins/easy-tables-vc/lib/templates/vc_table.html.php and change last line in file that says

to

And voila, all shortcodes inside Easy Tables cells will bee processed.

4 thoughts on “Easy Tables and support for shortcodes”

  1. Hello, tried your tweak but no luck. I just change in the file wp-content/plugins/easy-tables-vc/lib/templates/vc_table.html.php the last line from echo $output; to echo do_shortcode($output);

    Is this the only thing that i have to do? Cause as i saw in the video you have a whole devyard.php file there…

    Please help
    Best Regards

    1. Change in vc_template.html.php enables processing of shortcodes in Easy Tables cells. Now insert any shortcode to cell and that should work.

      devyard.php file in my video describes basics of creating dummy shortcodes for inserting image and link to content in WordPress, including Easy Tables cell, but if you wish you can use any shortcode there.

  2. Whilst this does fix the issue it expands the row to the size of the shortcode, so longer shortcode usage like an ultimate icon with tool-tip can quickly make the table rows huge.

  3. Thanks for the tip, it worked – one issue I found was with shortcodes containing url with characters that might get converted, such as quote (&quot). The conversions done by easy tables can mess up the shortcode output.

    Adding this line before the echo helped: $output = htmlspecialchars_decode($output);

Leave a Reply

Your email address will not be published. Required fields are marked *