I have a <script src='http://www.onthegosystems.com/mediaplayer/swfobject.js' type='text/javascript'></script> <div id='mediaspace' style='text-align: center;'>This text will be replaced</div> <script type='text/javascript'>// <![CDATA[ var so = new SWFObject('http://www.onthegosystems.com/mediaplayer/player.swf','mpl','580','400','9'); so.addParam('allowfullscreen','true'); so.addParam('allowscriptaccess','always'); so.addParam('wmode','opaque'); so.addVariable('file',' URL HERE '); so.write('mediaspace'); // ]]></script> video in the post. Is there a way to get it in the loop Here is what I'm using so far: <?php query_posts('category_name=productivity&showposts=10'); ?> <?php while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content"> <?php echo get_video() ?> <div class="right"> <img src="<?php echo get_image() ?>" style="width:100px;height:100px"/> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br /> By:<?php the_author_meta(‘description’); ?> </h2> <?php if(function_exists('the_ratings')) { the_ratings(); } ?> <?php the_category(',') ?> <?php the_excerpt(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> </div></div> <?php comments_template( '', true ); ?> </div> <?php endwhile;?> Here get_video is what i cant make work any sudjestions?
Since, i don not know Much of PHP. May i know the what is the function of this script. Explain in little details. May be I can suggest you, Some other readymade plugin/script for That.
I suggest to use the SWFObject version 2.2. Also the tag with the 'mpl' id does not exist on you sample code.