embedding video into sidebar
-
I have a wordpress site and am trying to embed a youtube video to the sidebar. I get a weird partial image instead of the youtube video when i try to embed in the custom field. What am I doing wrong? This is the video I’m trying to embed: https://www.youtube.com/watch?v=FlfrrqnUyfg
This is what my sidebar-inner.php code looks like:<?php
/**
* The Sidebar containing the primary and secondary widget areas.
*/
?>
<div class=”right-block”>
<?php
$vdo = ‘vdo’;
$themeta = get_post_meta($post->ID, $vdo, TRUE);
if($themeta != ”) { ?>
<iframe src=”<?php echo $themeta; ?>” width=”306″ height=”205″ frameborder=”0″ webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<?php } ?>
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
?>
<div style=”text-align:center;”><?php
$book = ‘book’;
$themeta = get_post_meta($post->ID, $book, TRUE);
if($themeta != ”) { ?>
<img src=”<?php echo $themeta; ?>” alt=”” />
<?php } ?>
<?php
$txt = ‘txt’;
$themeta = get_post_meta($post->ID, $txt, TRUE);
if($themeta != ”) {
echo $themeta;
}
?>
<p>Experience and training in Home Care led to GoCare’s beliefs and model.</p>
</div>
</div>The blog I need help with is: (visible only to logged in users)
-
I have a wordpress site
Hi, you’re in the wrong forum.
This forum is for blogs/sites hosted by WordPress.com .WordPress.COM and WordPress.ORG are completely separate and different http://support.wordpress.com/com-vs-org/
And you should ask in the WordPress.org forum
http://wordpress.org/support/ -
-
Nope, it’s a WordPress.org site.
Read about the differences, please:
http://support.wordpress.com/com-vs-org/The blog I need help with is aimeestork.wordpress.com
And your question is not about http://aimeestork.wordpress.com/
- The topic ‘embedding video into sidebar’ is closed to new replies.