Use the easy table shortcode in another plugin
-
Hello,
I am trying to create a new plugin, inside which i need to call the easy table shortcode. The following codes that I typically use to call the plugin from a page does not work. I have read in several articles that I should be using do_shortcode to echo the table. I am not quite sure of the right syntax. Can you please help.
<?php
add_shortcode(‘add_it’,’MyNewPlugin’);function MyNewPlugin() {
echo do_shortcode(‘[table]’);
echo “\n”;
echo ‘column1, column2’;
echo “\n”;
echo do_shortcode(‘[/table]’);
)?>
Thanks in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Use the easy table shortcode in another plugin’ is closed to new replies.