Title: Shortcode not working in Table Cell
Last modified: August 24, 2016

---

# Shortcode not working in Table Cell

 *  Resolved [nwalker](https://wordpress.org/support/users/nwalker/)
 * (@nwalker)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-table-cell/)
 * Hi Tobias,
 * I have two GEO targeting plugins / shortcodes that I’m using in a table to display
   the flag of the visitor and whether they can be accepted or not.
 * The codes work outside of the table but when i put them in they remain static
   showing just the UK, even when i visit the site from other regions using [http://www.locabrowser.com/](http://www.locabrowser.com/)
   to test.
 * The two plugins are MaGiKS Geo Country Lite (for the flags) and GeoTarget IP 
   Plugin by Flytonic.
 * I have created a page with the table and the codes outside so you can see the
   problem. [http://www.livecasinocomparer.com/geo-test-page/](http://www.livecasinocomparer.com/geo-test-page/)
 * Hoping that you can help me fix this 🙂
 * Cheers
    Neil
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Thread Starter [nwalker](https://wordpress.org/support/users/nwalker/)
 * (@nwalker)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-table-cell/#post-6082462)
 * Actually I think I have worked it out from your previous posts on the subject.
 * I’ve added cache_table_output=false / to the table shortcode and it seems to 
   have done the trick. It also made me look at two other caching facilities I use
   and I’ve had to exclude the pages from both of them to make the geo work properly!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-table-cell/#post-6082519)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Yes, the caching is most likely responsible for this. Good to hear that you found
   this parameter already, which should indeed fix this for TablePress. And yes,
   to make the detection work properly, you will likely have to turn off all the
   caching for that page.
 * Best wishes,
    Tobias
 *  Thread Starter [nwalker](https://wordpress.org/support/users/nwalker/)
 * (@nwalker)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-table-cell/#post-6082530)
 * Thanks, something strange has now occurred.
 * I’m now losing all the paragraphs formatting on the page where I have the table.
   If I remove the table short code from the page it works fine, if I add it back
   it screws up the page again. It’s happened to both the pages where I have amended
   the table to include the geo fields.
 * I also tried just removing the clear cache and leaving the table in same issue.
 * The two pages are:
 *     ```
       http://www.livecasinocomparer.com/actual-gaming-live-casino-software/
       http://www.livecasinocomparer.com/live-blackjack/blackjack-side-bets/
       ```
   
 * I have all caching switched off.
 * I think I’m going mad!! lol
 *  Thread Starter [nwalker](https://wordpress.org/support/users/nwalker/)
 * (@nwalker)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-table-cell/#post-6082534)
 * Ok, so I’ve put the old version of the table back with no GEO code in it and 
   the page displays fine, so there is something with the geo short code and tablepress
   that is causing the <p> to disappear.
 * Is there any code or anything that can be wrapped around the short codes to stop
   this?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-table-cell/#post-6082536)
 * Hi,
 * TablePress is definitely not messing with those `<p>` tags, so I can only assume
   that something else is removing them.
    My feeling is that something is turning
   off the `wpautop()` function.
 * I suggest to temporarily deactivate all other plugins one by one, and also switch
   to a WordPress default theme, until you can find a cause for this.
 * Regards,
    Tobias
 *  Thread Starter [nwalker](https://wordpress.org/support/users/nwalker/)
 * (@nwalker)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-table-cell/#post-6082538)
 * Thank you.
 * I think I may have found a work around. Thats to install the Tinymce Advanced
   plugin for the editor and use the config item – do not remove <p> tags from posts.
 * Seems to have done the trick, but that isn’t the root cause. I’ll do some more
   investigation when I have more time.
 * Thanks.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-table-cell/#post-6082539)
 * Hi,
 * indeed, this is likely not the root cause, as the `<p>`s are added by default.
   I hope that you can find something!
 * Regards,
    Tobias

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

The topic ‘Shortcode not working in 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-table-cell/#post-6082539)
 * Status: resolved