Title: Use the easy table shortcode in another plugin
Last modified: August 21, 2016

---

# Use the easy table shortcode in another plugin

 *  Resolved [Newbee9899](https://wordpress.org/support/users/newbee9899/)
 * (@newbee9899)
 * [12 years ago](https://wordpress.org/support/topic/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.
 * [https://wordpress.org/plugins/easy-table/](https://wordpress.org/plugins/easy-table/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [takien](https://wordpress.org/support/users/takien/)
 * (@takien)
 * [12 years ago](https://wordpress.org/support/topic/use-the-easy-table-shortcode-in-another-plugin/#post-4883115)
 * Hello, **Newbee9899**
 * Here is how to use do_shortcode correctly.
 *     ```
       $somevariable = "[table]
       one,two,three,four
       five,six,seven,eight
       [/table]";
   
       echo do_shortcode( $somevariable );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Use the easy table shortcode in another plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-table_aeb393.svg)
 * [Easy Table](https://wordpress.org/plugins/easy-table/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-table/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-table/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-table/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-table/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-table/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [takien](https://wordpress.org/support/users/takien/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/use-the-easy-table-shortcode-in-another-plugin/#post-4883115)
 * Status: resolved