Show posts embeded video on category stream
-
Hi.
I am trying to include my embeded video into the simplexml stream so that my page shows both featured image thumbnails and embeded videos. I used this plugin. Now I’m just needed some assistance making it show in the stream. Here’s my code in my taxonomy-productcategory.php. It is currently not showing the embeded video or the category description so I’ve been trying to fix from line 34.<?php /** * @package WordPress * @subpackage Default_Theme */ ?> <?php include('headerport3col.php'); ?> <? global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = stripslashes(get_settings( $value['id'] )); } } ?> <div id="content"> <!-- Start Main Content --> <div id="main-content" class="move40"> <!-- <img src="<?php bloginfo('template_directory'); ?>/images/aboutus_title.png" alt="" width="73" height="62" class="img-left wp-post-image" /> --> <!--<h1>Products</h1>--> <!-- <h4>TRUSST? Trussing system</h4> --> <div class="clear"></div> <div class="clear"></div> <h2><?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?></h2> <div class="main-ruler"></div> <div class="clear"></div> <div class="clear"></div> <div class="section"> <!-- Add users content from category description field --> <?php echo category_description(); ?> <?php $count1 = 1; if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="three-col <?php if ($count1 == 3) { ?> end-col<?php } ?> "> <h3><a>"><?php the_title(); ?></a></h3> <?php if ( has_post_thumbnail()) : ?> <?php $domsxe = simplexml_load_string(get_the_post_thumbnail()); $thumbnailsrc = $domsxe->attributes()->src; ?> <a>" title="Content description"><?php the_post_thumbnail('thumbnailblog', array('class' => 'img-box-large feature-img')); ?> </a> <?php endif; ?> <p class="no-pad"><?php the_excerpt(); ?></p> <a>" class="arrow-link">Learn More</a> </div> <?php if ($count1 == 3) { ?><div class="ruler"></div><?php $count1 = 0; } $count1++ ?> <?php endwhile; ?> <?php endif; ?> <div class="ruler"></div> </div> </div> <?php include('sidebarproduct.php'); ?> </div> <!-- End Main Content --> </div> <!-- End Content --> <div class="clear"></div> <?php get_footer(); ?>
- The topic ‘Show posts embeded video on category stream’ is closed to new replies.