Podlove Web Player
[resolved] Shortcode support for src (3 posts)

  1. phunehehe
    Posted 3 years ago #

    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?


  2. gerritvanaaken
    Plugin Author

    Posted 3 years ago #

    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?

  3. phunehehe
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Podlove Web Player
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic