Title: Shortcode support for src
Last modified: August 20, 2016

---

# Shortcode support for src

 *  Resolved [phunehehe](https://wordpress.org/support/users/phunehehe/)
 * (@phunehehe)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/shortcode-support-for-src/)
 * I hacked the plugin to support shortcode in the src attribute. The hack looks
   like this
 *     ```
       // does it contain a shortcode?
       $maybe_shortcode = "[$src/]";
       $maybe_real = do_shortcode($maybe_shortcode);
       if ($maybe_shortcode != $maybe_real) {
       	$src = $maybe_real;
       }
       ```
   
 * And you use it in a post like this
 *     ```
       [podloveaudio src='s2File download="You-paid.mp3" download_key="true"'/]
       ```
   
 * Do you think it can be incorporated into the next release?
 * [http://wordpress.org/extend/plugins/podlove-web-player/](http://wordpress.org/extend/plugins/podlove-web-player/)

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

 *  [gerritvanaaken](https://wordpress.org/support/users/gerritvanaaken/)
 * (@gerritvanaaken)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/shortcode-support-for-src/#post-3141637)
 * I don’t see much use here. Why would you put a shortcode into your shortcode?
   Just so that you can listen while you’re listening?
 *  Thread Starter [phunehehe](https://wordpress.org/support/users/phunehehe/)
 * (@phunehehe)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/shortcode-support-for-src/#post-3141638)
 * Sorry, I should have explained better. I happened to need protected audio files,
   not just files available by public URLs. So the URL is a private one generated
   by the shortcode `s2File` and there wasn’t anyway to make Podlove use that. Now
   I realize that’s quite a corner case, but maybe someone else might find it useful?
 * `s2File` is provided by [s2Member](http://wordpress.org/extend/plugins/s2member/).

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

The topic ‘Shortcode support for src’ is closed to new replies.

 * ![](https://ps.w.org/podlove-web-player/assets/icon.svg?rev=2286308)
 * [Podlove Web Player](https://wordpress.org/plugins/podlove-web-player/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/podlove-web-player/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/podlove-web-player/)
 * [Active Topics](https://wordpress.org/support/plugin/podlove-web-player/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/podlove-web-player/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/podlove-web-player/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [phunehehe](https://wordpress.org/support/users/phunehehe/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/shortcode-support-for-src/#post-3141638)
 * Status: resolved