Title: Insert a shortcode
Last modified: August 21, 2016

---

# Insert a shortcode

 *  Resolved [cyrock](https://wordpress.org/support/users/cyrock/)
 * (@cyrock)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/insert-a-shortcode/)
 * Hello Tobias!
 * I want to use a WooCommerce-Shortcode in a table. But: When i insert shortcode
   in a cell the Button appears outside and above the table.
 * How can i use the shortcode inside of a cell/row?
 * Thanks for this great tool and good luck for your Dis`.
 * Best!
    Cyrock
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/insert-a-shortcode/#post-5066047)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Can you please post a link to the page with the table where this problem happens,
   so that I can take a direct look? Thanks!
 * Regards,
    Tobias
 *  Thread Starter [cyrock](https://wordpress.org/support/users/cyrock/)
 * (@cyrock)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/insert-a-shortcode/#post-5066049)
 * Hi! Thanks for the quick answer!
 * No worry about the trouble! It´s learning time 😉
 * Look: [http://www.hydrobios.de/hydrobios_wp/shop/limnological-plankton-nets/plankton-nets-acc-to-apstein-copy/](http://www.hydrobios.de/hydrobios_wp/shop/limnological-plankton-nets/plankton-nets-acc-to-apstein-copy/)
 * The Shortcode is set in the row 438001 column VARIATIONS but appears above the
   table….any idea?
 * Regards,
    Christian
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/insert-a-shortcode/#post-5066050)
 * Hi,
 * are you refering to the “Add to request” button?
    In the HTML code, this is before
   the table HTML, but I don’t really se how that can happen if you put the Shortcode
   into a table cell…
 * If possible, I’d like to take a direct look at this on your site. Could you therefore
   please create a temporary admin account for me and send me the details via email(
   the address is in the main plugin file “tablepress.php”)? That way, I can investigate
   this directly. Thanks!
 * Regards,
    Tobias
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/insert-a-shortcode/#post-5066099)
 * Hi,
 * just for everybody who follows this thread: I’ve been working on this directly
   with cyrock, and we found that this is caused by some bugs in the “Woocommerce–
   Request a Quote” plugin that creates that button.
 * It basically registers a Shortcode, but instead of `return`ing the output for
   the Shortcode, as it is necessary per the WordPress Shortcode API, it `echo`es
   the content directly to the page. That is why that code shows up before the table.
   
   From what I can see, the offending code is in the `dvin_addquotelist_button()`
   function of that plugin, which uses that `echo`, as well as in the `dvin_wcql_Shortcodes::
   shopbutton()` function, which is missing a `return`.
 * This will therefore need to be fixed in the “Woocommerce – Request a Quote” plugin,
   so that I suggest that you contact the author of that plugin.
    (A temporary fix
   should be to replace
 *     ```
       dvin_addquotelist_button(true,$atts['product_id']);
       ```
   
 * with
 *     ```
       return dvin_addquotelist_button(true,$atts['product_id']);
       ```
   
 * in `dvin_wcql_Shortcodes::shopbutton()`, and
 *     ```
       echo ob_get_clean();
       ```
   
 * with
 *     ```
       return ob_get_clean();
       ```
   
 * in `dvin_addquotelist_button()`.
    (Depending on where that function is used by
   the plugin, some more modifications might be required, I didn’t check that.)
 * Regards,
    Tobias
 *  Thread Starter [cyrock](https://wordpress.org/support/users/cyrock/)
 * (@cyrock)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/insert-a-shortcode/#post-5066164)
 * Hello!
 * The Developer of RAQ has answered and will fix the bug within the next Update…
 * Cheers,
    Christian
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/insert-a-shortcode/#post-5066166)
 * Hi Christian,
 * that’s great news! Good to hear that the developer will fix this Shortcode issue!
   🙂
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Insert a shortcode’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/insert-a-shortcode/#post-5066166)
 * Status: resolved