Title: Shortcode inside table cell
Last modified: February 19, 2019

---

# Shortcode inside table cell

 *  Resolved [rascaluz](https://wordpress.org/support/users/rascaluz/)
 * (@rascaluz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-table-cell-2/)
 * Hi, Tobias,
 * First of all, thank you so much for your awesome plugin.
 * I am trying to use it within one of my projects but I couldn’t get it work with
   my settings.
 * I don’t know if I am doing anything wrong. I put the shortcode {Keyword} inside
   a cell but didn’t work. The shortcode is from another plugin (page generator 
   pro).
 * I tried [table id=123 cache_table_output=false /] that I’ve seen from one of 
   your answers but neither worked.
 * Could you please give me a hand?
 * Cheers

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-table-cell-2/#post-11222583)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * `{Keyword}` is not a valid Shortcode in the sense of the WordPress Shortcode 
   API, but apparently a custom implementation by that plugin. Therefore, we’ll 
   need a bit of extra code to make these work. Unfortunately, as this seems to 
   be a premium plugin, I can’t access the source code to find that code. You’d 
   therefore please have to ask the developer for the function name that needs to
   be run on content to evaluate these keywords.
 * Regards,
    Tobias
 *  Thread Starter [rascaluz](https://wordpress.org/support/users/rascaluz/)
 * (@rascaluz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-table-cell-2/#post-11222848)
 * Thank you so much for you quick response.
 * Actually there is a free version if you want to check it out [https://es.wordpress.org/plugins/page-generator/](https://es.wordpress.org/plugins/page-generator/)
 * Anyway I’m going to ask the developer about the function name and let you know.
 * Cheers
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-table-cell-2/#post-11222859)
 * Hi,
 * I had a quick look at the code of the free version, but couldn’t immediately 
   find the function, as my time is limited at the moment.
    It would be best if 
   their support team can provide this.
 * Regards,
    Tobias
 *  Thread Starter [rascaluz](https://wordpress.org/support/users/rascaluz/)
 * (@rascaluz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-table-cell-2/#post-11227265)
 * Hi Tobias,
 * I asked the developer and he replied this:
 * I can’t provide specifics on how they might want to implement a solution, as 
   it will depend on their software. However, they’ll most likely want to force 
   processing of their shortcodes using the page_generator_pro_generate_post_args
   filter, which fires prior to the creation of the generated Page:
    [https://www.wpzinc.com/documentation/page-generator-pro/developers/#page_generator_pro_generate_post_args](https://www.wpzinc.com/documentation/page-generator-pro/developers/#page_generator_pro_generate_post_args)
 * I hope it helps, let me know if I have to ask him anything else
 * Thank you for your time and patience
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-table-cell-2/#post-11227900)
 * Hi,
 * hhm, no, I don’t see how that solves our problem.
    What we need is the PHP function
   that searches for {keyword} in content. For example, WordPress normally uses
 *     ```
       add_filter( 'the_content', 'do_shortcode' );
       ```
   
 * to replace WordPress Shortcodes with the corresponding content in posts and pages.
   
   TablePress uses a similar code like
 *     ```
       add_filter( 'tablepress_cell_content', 'do_shortcode' );
       ```
   
 * to search for such Shortcodes in table cells.
 * What we now need is their function equivalent to that `do_shortcode` PHP function.
   Its task is to search for things like {keyword} and replace it with the correct
   content at that time.
 * Regards,
    Tobias

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

The topic ‘Shortcode inside table cell’ 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/)

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