Quick Help: Add Video Headline
-
I have a blog located here http://www.lautechgroup.com/blog
It is currently running the arthemia theme and I have a quick question regarding the use of video in the headline. The way the blog is setup, any post that you categorize as “Headline”, will populate on the front page in the “headline” section at the top. What I want to be able to do is create a separate category called “Video” and have a video populate in that same headline area if i create a video post and use that category. I am including a mockup here of what I am talking about http://www.flickr.com/photos/thirtytwopaths/3427959984/sizes/l/I know this is probably a simple matter of editing the php. Currently the headline functions through the following php code in index.php
<div id="headline"> <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/headline.png" width="75px" height="21px" alt="" /> <?php query_posts("showposts=1&category_name=Headline"); ?> <?php while (have_posts()) : the_post(); ?> <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div> <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div> <?php $values = get_post_custom_values("Headline");?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=300&h=275&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="300px" height="275px" /></a> <?php the_excerpt(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read the full story »</a> <?php endwhile; ?> </div>Any help or suggestions would be greatly appreciated.
The topic ‘Quick Help: Add Video Headline’ is closed to new replies.