Title: Problematic Shortcode
Last modified: May 6, 2021

---

# Problematic Shortcode

 *  Resolved [vladsitaru](https://wordpress.org/support/users/vladsitaru/)
 * (@vladsitaru)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problematic-shortcode/)
 * Hello Tobias,
 * I seek help with a shortcode I am using to play audio files. It seems to have
   issues when trying to align the column centrally & vertically.
 * At the moment I am using the following CSS which works for all but the 4th column:
 * .tablepress-id-1 .column-1,
    .tablepress-id-1 .column-2, .tablepress-id-1 .column-
   4, .tablepress-id-1 .column-5 { text-align: center; }
 * .tablepress-id-1 .column-1,
    .tablepress-id-1 .column-2, .tablepress-id-1 .column-
   3, .tablepress-id-1 .column-4, .tablepress-id-1 .column-5 { vertical-align: middle;}
 * The plugin for the audio “play” button I use is Podcast Player Pro:
    [https://vedathemes.com/blog/help/podcast-player-pro/](https://vedathemes.com/blog/help/podcast-player-pro/)
 * Would this be a problem related to the plugin, or could something be done to 
   fix it?
 * Regards,
    Vlad
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblematic-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problematic-shortcode/#post-14408793)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * To make that Shortcode work more reliably, you’ll probably have to turn off TablePress’
   output caching. You can do that by using the extended Shortcode
 *     ```
       [table id=1 cache_table_output=false /]
       ```
   
 * on this page.
 * As for the centering, it will indeed be the best to contact the support team 
   of that Podcasy Player Pro plugin, as they should know best what CSS to use. 
   You could then of course add that CSS code to the TablePress “Custom CSS” text
   field.
 * Regards,
    Tobias
 *  Thread Starter [vladsitaru](https://wordpress.org/support/users/vladsitaru/)
 * (@vladsitaru)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problematic-shortcode/#post-14421123)
 * Hello Tobias,
 * I got in touch with the Podcast Player Pro team and they provided the below CSS
   code that does the job:
 * .tablepress .pp-podcast { width: 35px !important; margin: 0 auto; }
 * There were also issues at one point with the Podcast Player not appearing for
   users not logged into wordpress. It seems Tablepress is caching HTML if you are
   not logged in. Here was the solution for this one, should it ever be of help 
   for someone.
 * add_filter( ‘tablepress_table_render_options’, function( $opt ) {
    $opt[‘cache_table_output’]
   = false; return $opt; } );
 * Thank you for your help!
    Vlad
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problematic-shortcode/#post-14421901)
 * Hi,
 * nice! Yes, that CSS code looks reasonable. 🙂
 * As for the other code: This will work, too, but it has the drawback that the 
   caching will be turned off for all tables, regardless of whether they have the
   other Shortcode in them or not. Therefore, I don’t fully recommend that code 
   approach, but instead suggest to use the modified Shortcode from my previous 
   reply. That will then only affect that particular table.
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please rate TablePress here in the plugin directory.
   Thanks!

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

The topic ‘Problematic 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/problematic-shortcode/#post-14421901)
 * Status: resolved