if (is_home()) { ?> <div class="wrapper2 height-297 flash"> <div class="thumbScroll"> <div class="sShow"></div> <ul class="sImg"> <?php $queryObject = new WP_Query('posts_per_page=10&cat=12'); while ($queryObject->have_posts()) { $queryObject->the_post(); ?> <li><a target="_blank" href="<?php the_permalink(); ?> "><img src="<?php echo get_content_image(); ?> " /></a></li> <?php } ?> </ul> <div class="sText"> <a href="#" class="sLeft">左</a> <div class="sThumb"> <ul> <?php if ($queryObject->have_posts()) { while ($queryObject->have_posts()) { $queryObject->the_post(); ?>
function get_content_image($file = false, $attr = '') { return get_content_image($file, $attr); }
if (have_posts()) { while (have_posts()) { the_post(); if ($count == 0) { $count++; ?> <div class="margin-t10 tabimg"> <a href="?p=77&matchid=<?php echo $match->id; ?> " target="_blank" class="fl" title="<?php the_title_attribute(); ?> " > <?php $imageContent = get_content_image(); if (!empty($imageContent)) { echo "<img src=" . $imageContent . " />"; } else { the_post_thumbnail(); } ?> </a> </div> <h4 class="margin-t6 margin-b10"><?php the_title_attribute(); ?> </h4> <dl class="margin-t10 tablist"> <?php the_excerpt();