hallo
ich habe für die single-side eine seperate sidebar, in der ein video eingebunden wird.
der pfad zum youtube video ist in einem benutzerdefinierten feld hinterlegt
der quelltext sieht dann so aus:
PHP
<?php if(get_post_meta($post->ID, "video", true)) : ?>
<object width="300" height="344"><param name="movie" value="<?php echo get_post_meta($post->ID, "video", true); ?>"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="<?php echo get_post_meta($post->ID, "video", true); ?>" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344">
</embed></object>
<?php endif; ?>
im broswer sieht das dann so aus
Code
<object width="300" height="344"><param name="movie" value="http://www.youtube.com/watch?v=RaL0NsgC9Fs"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/watch?v=RaL0NsgC9Fs" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344">
</embed></object>
aber statt dem video habe ich nur eine weiße fläche