Title: Cell shortcodes rendering before table shortcode
Last modified: April 4, 2021

---

# Cell shortcodes rendering before table shortcode

 *  Resolved [mjgilbert](https://wordpress.org/support/users/mjgilbert/)
 * (@mjgilbert)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cell-shortcodes-rendering-before-table-shortcode/)
 * Hello,
 * I am currently using TablePress and have shortcodes in each cell (2×7 table).
 * However, the shortcode in each cell is rendering before the table itself, so 
   I end up with all of shortcode rendered on top of the table (as if it were a 
   long title) and then the table rendered underneath it.
 * Is there a step I am missing in adding my shortcode? Do I need to write a function
   to delay the cell shortcode to wait until the table is rendered?
 * Thanks!

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

 *  Thread Starter [mjgilbert](https://wordpress.org/support/users/mjgilbert/)
 * (@mjgilbert)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cell-shortcodes-rendering-before-table-shortcode/#post-14275900)
 * I was able to figure this one out shortly after posting.
 * The issue was, in my shortcode that I wrote, I was `echo`-ing my variable.
 * I changed that to `return` instead of `echo` and now things are rendering in 
   place as they should.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cell-shortcodes-rendering-before-table-shortcode/#post-14277482)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Indeed, Shortcode always need to `return` and must not use `echo`. Good to hear
   that it’s working now 🙂
 * Best wishes,
    Tobias

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

The topic ‘Cell shortcodes rendering before table 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/cell-shortcodes-rendering-before-table-shortcode/#post-14277482)
 * Status: resolved