sidebar embed youtube video
-
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> -
Hello there,
That’s not a WordPress.com hosted blog. We are unable to provide support for any sites that are not hosted here at WordPress.COM. WordPress.COM and WordPress.ORG are completely separate and have different logins, features, run different versions of some themes with the same names, and have separate support forums. http://en.support.wordpress.com/com-vs-org/If you don’t have a username account at WordPress.ORG click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the Theme support forums there.
Resetting your WordPress.ORG password http://codex.wordpress.org/Resetting_Your_Password
WordPress.org support docs are at https://codex.wordpress.org/Main_Page
- The topic ‘sidebar embed youtube video’ is closed to new replies.