WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. phunehehe
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/podlove-web-player/

  2. gerritvanaaken
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags