This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Alt prob code snippet

By: a guest on Jul 29th, 2013  |  syntax: None  |  size: 0.88 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <section id="latestnews">
  2.  
  3.         <h2><a class="homepagetitle" href="/news/">News</a></h2>
  4.        
  5.         <div class="newscol">
  6.        
  7.                 <?php query_posts('category_name=news&showposts=6'); ?>
  8.        
  9.                 <?php while (have_posts()) : the_post(); ?>
  10.  
  11.                         <div class="newsbox">
  12.                                 <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  13. <?php if(get_video_thumbnail()!=null) { echo '<img src="'.get_video_thumbnail().'" alt="'.the_title().'" class="video-thumbnail">'; } elseif(has_post_thumbnail()) { the_post_thumbnail(); }; ?>
  14. <?php if(get_video_thumbnail()!=null) echo '<img src="/img/play-button.png" alt="play video" width="40px" class="overlay">'; ?>
  15.                                 </a>
  16.                                 <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><h3><?php the_title(); ?></h3></a>
  17.                                 <?php the_excerpt(); ?>
  18.                         </div>
  19.  
  20.                 <?php endwhile;?>
  21.  
  22.                 <?php rewind_posts(); ?>
  23.                
  24.         </div><!-- .newscol -->
  25.  
  26. </section>
clone this paste RAW Paste Data