Advertisement
Guest User

Untitled

a guest
Jul 9th, 2011
386
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3. <ul id="latestNewsList">
  4.  
  5. <? news_query_posts() ?>
  6. <? while (have_posts()) : the_post(); ?>
  7. <li><a href="<?php the_permalink(''); ?>" title="<?php the_title(''); ?>"><?php if(has_post_thumbnail()) { the_post_thumbnail('news-thumb'); } else {echo '<img src="http://placehold.it/60x60" alt="" />'; } ?></a><div class="content"><span class="date"><?php the_date(); ?> at <?php the_time(); ?></span><span class="commentCount"><?php comments_number( '0', '1', '%' ); ?></span><h3 class="clear"><a href="<?php the_permalink() ?>" title="<?php the_title(''); ?>"><?php the_title(''); ?></a></h3></div></li>
  8. <?php endwhile; wp_reset_postdata(); ?>
  9.  
  10. <?php previous_posts_link('newer posts &raquo;'); ?> <?php next_posts_link('&laquo; older posts'); ?>
  11.  
  12. </ul>
  13.  
  14. <div class="paging">
  15. <a href="#" title="#" class="prevPage">Newer Stories</a>
  16. <a href="#" title="#" class="link">view full news archive</a>
  17. <a href="#" title="#" class="nextPage">Older Stories</a>
  18. </div>
  19.  
  20. <?php get_footer(); ?>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement