Support » Plugin: Podlove Web Player » Shortcode support for src

  • Resolved phunehehe


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gerritvanaaken


    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?

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode support for src’ is closed to new replies.