WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Iframe code

[Resolved] Iframe code

Viewing 6 replies - 1 through 6 (of 6 total)
  • mattrussell
    Member

    @mattrussell

    NB/ I’m just trying to get the iframes to link to the posts instead of playing on click.

    I was looking at the support tips and you have mentioned the function: get_the_post_video_url( $post_id )

    Can I just include this in my theme file in-order for the iframe to link to the posts?

    Thanks again!

    Plugin Author Alex
    Participant

    @ahoereth

    I am not sure what you try to archieve? get_the_post_video_url will give you a youtube/vimeo/dailymotion… url which you can use to link to the provider. The iframe html codes are actually built in the get_the_post_video function in php/general.php.

    mattrussell
    Member

    @mattrussell

    Hey,

    Thanks for the response.

    I have the featured videos on my index page and I want to create a link on them to their respective posts (permalink), however currently when clicked the videos will only play.

    Is there a possibility that only the play button ‘on click’ will play the video and the rest of the iframe will link to the permalink for the post?

    Thanks!

    Plugin Author Alex
    Participant

    @ahoereth

    No those are flash elements. The provider decides what they do on click. The plugin just replaces the featured images with those iframes.

    mattrussell
    Member

    @mattrussell

    Ok.

    So the issue is with my theme code and not the plugin code?

    🙂

    mattrussell
    Member

    @mattrussell

    Ah you mean the provider i.e. vimeo, youtube etc.

    Ok. Anyways thanks a lot for your response.

    The plugin is really good!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Iframe code’ is closed to new replies.