Ready to get started?Download WordPress


Featured Video Plus
[resolved] Fallback Video URL (3 posts)

  1. marekmaurizio
    Posted 1 year ago #

    How can i get the fallback video URL in php?


  2. Alexander Hoereth
    Plugin Author

    Posted 1 year ago #

    Mh.. The plugin atm has no function available for this. Will add it to the next release. For the moment you can grab a copy of the 1.6.2 branch from github: https://github.com/ahoereth/featured-video-plus/tree/1.6.2

    This introduces a change to the get_the_post_video_url function:
    First parameter still is $post_id, second is a boolean if the fallback url should be get (by default false).
    So to get the current's post fallback video url use
    $fallbackurl = get_the_post_video_url(null, true);.

    This branch still internally uses 1.6.1 as version number. It does not change anything else but this change.
    Hope it fixes your case,

  3. Alexander Hoereth
    Plugin Author

    Posted 1 year ago #

    This just got released as part of 1.7 - so the link to the 1.6.2 branch is broken now. Get 1.7 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic