Title: Table Press shortcode not rendered
Last modified: September 1, 2016

---

# Table Press shortcode not rendered

 *  [gnjenkins](https://wordpress.org/support/users/gnjenkins/)
 * (@gnjenkins)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/table-press-shortcode-not-rendered/)
 * Hi there, great plugin!
 * Only problem I have is getting Table Press tables rendered in the email – they
   are placed onto a page/post using the [table id=5 /] shortcode but are not being
   rendered by Email Users. This includes the preview of the email when selecting
   which set of users to email. Other shortcodes on different pages/posts are being
   rendered correctly in the preview and then in the email received (eg [su-button]
   or [child-pages]. Its just TablePress that’s not working. And its the same whether
   on a page or a post.
 * [https://wordpress.org/plugins/email-users/](https://wordpress.org/plugins/email-users/)

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

 *  [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/table-press-shortcode-not-rendered/#post-7626152)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * The reason for this likely is that TablePress only registers its Shortcode on
   the frontend of the site, but that the Email Users plugin operates in the wp-
   admin context.
 * To work around that, you could try registering the Shortcodes in the admin context
   as well, e.g. using the suggestion in [https://wordpress.org/support/topic/tablepress-shortcode-not-working-with-woocommerce-ajax?replies=4](https://wordpress.org/support/topic/tablepress-shortcode-not-working-with-woocommerce-ajax?replies=4)
 * Regards,
    Tobias
 *  Thread Starter [gnjenkins](https://wordpress.org/support/users/gnjenkins/)
 * (@gnjenkins)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/table-press-shortcode-not-rendered/#post-7626160)
 * Hi Tobias – TablePress is also very good!
 * Your suggestion doesn’t seem to have worked for me though? I added the code to
   my functions.php but it has made no difference. From what I can see of the Email
   Users plugin, it is using the do_shortcode function call to try to convert the
   shortcodes into the full post:
 * `$post_content = do_shortcode($post_content)`
 * Does this shed any light on your approach? Are there other ways to get TablePress
   active within the wp-admin backend?
 * Thanks
    Gareth
 *  [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/table-press-shortcode-not-rendered/#post-7626210)
 * Hi Gareth,
 * ah, it looks like that code from the other post does not apply to this scenario.
   Please try again with
 *     ```
       add_action( 'init', 'load_tablepress_in_the_admin', 11 ) );
       function load_tablepress_in_the_admin() {
         if ( is_admin() ) {
           TablePress::load_controller( 'frontend' );
         }
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [gnjenkins](https://wordpress.org/support/users/gnjenkins/)
 * (@gnjenkins)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/table-press-shortcode-not-rendered/#post-7626239)
 * Hi Tobias,
 * That’s worked – I now get a plain table version of any TablePress inserted tables
   into the Notify Users About This Post email preview. I can then apply a bit of
   simple formatting (mainly set all borders to 1, width to 100%) before it gets
   sent out. It would be great if I could define a simple default format for tables
   within Email Users rather than have to do it by hand.
 * Thanks,
    Gareth
 *  [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/table-press-shortcode-not-rendered/#post-7626253)
 * Hi Gareth,
 * Good to hear that this worked! 🙂
 * About the styling: This is not really in TablePress’s hands, I’m afraid, as it
   depends on what CSS the Email Users plugin loads.
 * Best wishes,
    Tobias

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

The topic ‘Table Press shortcode not rendered’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-users_a0e0cf.svg)
 * [Email Users](https://wordpress.org/plugins/email-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-users/)
 * [Active Topics](https://wordpress.org/support/plugin/email-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-users/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/table-press-shortcode-not-rendered/#post-7626253)
 * Status: not resolved