WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Wordtube] How do I programatically include the player? (4 posts)

  1. spstieng
    Member
    Posted 5 years ago #

    I've managed to get it working if I write e.g. [MYPLAYLIST=last15] in a post.

    But I want the player to be in a specific place on the page.
    What do I need to write in my PHP code to display the player?

  2. jk_
    Member
    Posted 5 years ago #

    I have the same issue!

    I would like to use wordtube tag inside a custom field and then display the video on a specific place on my page.

    It works perfectly with a real embed code.

    <div id="video">
        	<div id="inside">
            	<div id="videoembed">
                <?php $key="topvideo"; echo stripslashes(get_post_meta($post->ID, $key, true)); ?>
            	</div>
        	</div>
        </div>
    <embed
    src="player.swf"
    width="720"
    height="400"
    bgcolor="undefined"
    allowscriptaccess="always"
    allowfullscreen="true"
    flashvars="file=***&image=***&backcolor=CCCCCC&frontcolor=333333&lightcolor=888888&screencolor=000000&skin=1&controlbar=over"
    />
  3. spstieng
    Member
    Posted 5 years ago #

    Exactly. I would also like to have a custom field for a specific page.

    Have you tried the above code with a video list? I would like to list 5-6 videos and play these without having to reload the page.

  4. net90s
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags