Title: Adding Audio support
Last modified: August 20, 2016

---

# Adding Audio support

 *  [notdodgy](https://wordpress.org/support/users/notdodgy/)
 * (@notdodgy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/adding-audio-support/)
 * First – thanks for the plugin, neat and effective.
 * I needed to add a feature…
    I use an rss feed from sermon.net. The feed items
   are links to mp3 or pdf files.
 * I modified the code as below to add the html5 code to get the users browser to
   insert an audio player.
 * This could be a useful feature to include in a future version, so that it adds
   the option to play podcasts etc.
 *     ```
       foreach($items as $item)
       	{
               $str .= '<li><a href="'.htmlspecialchars($item['link']).'" title="'.htmlspecialchars($item['title']).'">'.short_name_custom( htmlspecialchars($item['title']), $words_limit ).'</a>';
       /added code
       	if ( strpos($item['link'],'mp3') !== false)
       $str .= '<br/> Play: <audio controls="controls"><source src="'.esc_url( $item['link'] ).'" type="audio/mp3" /></audio>';
               $str .= '</li>';
       	}
       /end of added code
       	$str .= '</ul>';
       		return $str;
       ```
   
 * [http://wordpress.org/extend/plugins/wp-rss-fetcher-shortcode/](http://wordpress.org/extend/plugins/wp-rss-fetcher-shortcode/)

The topic ‘Adding Audio support’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-rss-fetcher-shortcode.svg)
 * [WP RSS Fetcher ShortCode](https://wordpress.org/plugins/wp-rss-fetcher-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rss-fetcher-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rss-fetcher-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rss-fetcher-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rss-fetcher-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rss-fetcher-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [notdodgy](https://wordpress.org/support/users/notdodgy/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/adding-audio-support/)
 * Status: not resolved