Title: [Plugin: WP-Table Reloaded] adding audio
Last modified: August 19, 2016

---

# [Plugin: WP-Table Reloaded] adding audio

 *  Resolved [spndoctr](https://wordpress.org/support/users/spndoctr/)
 * (@spndoctr)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/)
 * i am using a fairly generic template (Black-LetterHead 1.5 by Ulysses Ronquillo).
   
   This table is perfect for a beat-making site but i can not add audio. i have 
   tried to use a number of audio plugins but i can not add “[” without it recognizing
   it as text and not script/code. any suggestions?

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/page/2/?output_format=md)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916159)
 * Hi,
 * this is because those audio player plugins don’t use regular WordPress Shortcodes
   but a custom implementation (which by default does not work in tables). To make
   them work, usually only a slight piece of code is necessary.
 * For example for the “Audio Player” plugin, that code is
 *     ```
       add_filter( 'wp_table_reloaded_cell_content', array( &$AudioPlayer, 'processContent' ), 2 );
       ```
   
 * and needs to go into your theme’s “functions.php” file.
 * If you are using a different plugin, please provide a link to it and I should
   be able to find the necessary code for you.
 * Best wishes,
    Tobias
 *  [bpac](https://wordpress.org/support/users/bpac/)
 * (@bpac)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916297)
 * Hi Tobias, I have added the code as shown before the last ?> in the functions.
   php file but it still is not working.
 * I am using Audio Player Version 2.0.4.1 By Martin Laine and a fresh install of
   WP table reloaded.
 * You can see what is happening here [http://bestpanicattackcure.com/blog/?page_id=160&preview=true ](http://bestpanicattackcure.com/blog/?page_id=160&preview=true)
 * the two audio clips above the table work fine but when I add the same code into
   the table you can see the results.
 * Thanks so much
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916298)
 * Hi,
 * thanks for the link and exact plugin name!
    The link doesn’t work for unfortunately,
   as it is only a preview, but the plugin name was actually even better 🙂 With
   that, I was able to find another piece of code that should work this time. Please
   try again with
 *     ```
       add_filter( 'wp_table_reloaded_cell_content', 'insert_audio_player' );
       ```
   
 * Best wishes,
    Tobias
 *  [bpac](https://wordpress.org/support/users/bpac/)
 * (@bpac)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916320)
 * Hi Tobias thanks for the quick reply… Im not sure whats happening now but when
   I add your code and hit update I get the following error:
 * “Parse error: syntax error, unexpected ‘;’, expecting T_STRING or T_VARIABLE 
   or ‘$’ in /home/freetcom/public_html/bestpanicattackcure/blog/wp-content/themes/
   twentyten/functions.php on line 176”
 * I tired removing the code but still get it so?????
 * thanks for your help with this
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916321)
 * Hi,
 * are you sure that you only added that code? No other things around it? Did you
   maybe accidentally remove other parts of the code?
 * If this persists, I suggest to replace the “functions.php” with a fresh one from
   the WordPress download package and try again.
 * Best wishes,
    Tobias
 *  [bpac](https://wordpress.org/support/users/bpac/)
 * (@bpac)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916322)
 * I just downloaded the theme and will update that file…
 * Where is the best place to add the code you sent? There is no closing php code
   on my functions.php…
 * At the bottom of the script it shows this
 *  printf(
    $posted_in, get_the_category_list( ‘, ‘ ), $tag_list, get_permalink(),
   the_title_attribute( ‘echo=0’ ) ); } endif;
 *  [bpac](https://wordpress.org/support/users/bpac/)
 * (@bpac)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916323)
 * Hi Tobias sorry to bother you again… I fixed the functions.php file and added
   the code you gave me to the very end of the functions.php file and now the image.
   text and audio player are showing outside of the table.
 * I published it so I could send you a link that will work this time : )
 * [http://bestpanicattackcure.com/blog/music-stress-reliever/](http://bestpanicattackcure.com/blog/music-stress-reliever/)
 * Thanks so much for your help
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916324)
 * Hi,
 * yes, right at the end of the “functions.php” is correct.
 * The Audioplayer now shows outside of the table, because my code was wrong again…
   Sorry.
 * Please try again with this one:
 *     ```
       function insert_audio_player_into_wp_table_reloaded($source) {
         global $AudioPlayer;
         return $AudioPlayer->processContent($source);
       }
       add_filter( 'wp_table_reloaded_cell_content', 'insert_audio_player_into_wp_table_reloaded' );
       ```
   
 * Best wishes,
    Tobias
 *  [bpac](https://wordpress.org/support/users/bpac/)
 * (@bpac)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916326)
 * Well we’re getting closer… it is now in the table but the audio player control
   is no longer showing…
 * [http://bestpanicattackcure.com/blog/music-stress-reliever/](http://bestpanicattackcure.com/blog/music-stress-reliever/)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916328)
 * Hi,
 * can you disable the usage of the DataTables JavaScript library for this table(
   on the table’s “Edit” screen).
    This library likely interferes with the JavaScript
   and therefore can not be used at the same time. Also, you should not put the 
   Audioplayer Shortcode in the first row of the table, as you have that set to 
   be the “table head”.
 * Regards,
    Tobias
 *  [bpac](https://wordpress.org/support/users/bpac/)
 * (@bpac)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916329)
 * You ROCK! Didnt have to disable the js library it worked by moving the code to
   the 2nd row…
 * Thank you so much for all your help.
 * Mark
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916336)
 * Hi Mark,
 * hey, cool! Thanks for the test and the confirmation!
 * Best wishes,
    Tobias
 *  [jkoerts](https://wordpress.org/support/users/jkoerts/)
 * (@jkoerts)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916346)
 * Hi. Thanks for all your work, Tobias.
 * I’m using this plugin (it converts mp3 files into a play button)…
    [http://wordpress.org/extend/plugins/play-button/](http://wordpress.org/extend/plugins/play-button/)
 * What is the code for this? Thanks for your help.
 * Thanks,
    James
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916349)
 * Hi James,
 * the code is a little bit easier for that one (as it’s programmed differently):
 *     ```
       add_filter( 'wp_table_reloaded_cell_content', 'play_button_replace' );
       ```
   
 * Best wishes,
    Tobias
 *  [jkoerts](https://wordpress.org/support/users/jkoerts/)
 * (@jkoerts)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/#post-1916357)
 * Thanks so much for your help.
 * And sorry for my lack of experience, but earlier you said to put this “right 
   at the end of the ‘functions.php’.” Does it go on a new line, or literally after
   the last character of the current last line?
 * …I’m sure I’m making this harder than it is. Thanks for your time.

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/page/2/?output_format=md)

The topic ‘[Plugin: WP-Table Reloaded] adding audio’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-table-reloaded_f7dcd3.svg)
 * [WP-Table Reloaded](https://wordpress.org/plugins/wp-table-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-table-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-table-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-table-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-table-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-table-reloaded/reviews/)

 * 23 replies
 * 5 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-adding-audio/page/2/#post-1916453)
 * Status: resolved