Advertisement
Guest User

obit page

a guest
Jul 14th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  
  5. * Template Name: Obiturary Page
  6.  
  7. *
  8.  
  9. * @package WordPress
  10.  
  11. * @subpackage Twenty_Ten
  12.  
  13. * @since Twenty Ten 1.0
  14.  
  15. */
  16.  
  17.  
  18.  
  19. get_header(); ?>
  20.  
  21. <div id="content">
  22.  
  23. <h2 class="title-heading">Obituaries</h2>
  24.  
  25. <?php query_posts( array ( 'category_name' => 'Obituaries', 'posts_per_page' => 10 ) ); while ( have_posts() ) : the_post();
  26. ?>
  27.  
  28. <div class="category-post-box">
  29.  
  30. <div class="hentry"><?php //$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
  31.  
  32. <?php //if($image):?>
  33.  
  34. <div class="alignleft"><a href="<?php the_permalink();?>"><?php the_post_thumbnail('search-thumb2'); ?></a></div>
  35.  
  36. <?php //endif; ?>
  37.  
  38. <h2 class="entry-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h2>
  39.  
  40. <div class="entry-meta"><a href="#"><span class="entry-date"><?php echo get_the_date('m/d/y');?></span></a></div>
  41.  
  42. <?php if ( get_post_meta($post->ID, 'Author Name', true) ) : ?>
  43. <div class="entry-meta"><span class="meta-prep-author">By: </span><span class="meta-prep-author"><?php $key="Author Name"; echo get_post_meta($post->ID, $key, true);?> (<?php $key2="News Source Name"; echo get_post_meta($post->ID, $key2, true); ?>) </span></div>
  44. <?php endif; ?>
  45.  
  46. <!-- .entry-meta -->
  47.  
  48. <div class="entry-content">
  49.  
  50. <?php echo excerpt1(60);?>
  51.  
  52. </div>
  53.  
  54. <a href="<?php the_permalink();?>" class="keepreading">Keep Reading >>></a>
  55.  
  56. <!-- .entry-content -->
  57.  
  58. </div>
  59.  
  60. </div>
  61.  
  62. <?php endwhile; wp_reset_query();
  63.  
  64. ?>
  65.  
  66. <div class="pagination">
  67.  
  68. <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>
  69.  
  70. </div>
  71.  
  72. <br class="clear" />
  73.  
  74. </div>
  75.  
  76. </div>
  77.  
  78. <div id="primary">
  79. <div class="add-box"><?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('obit-sidebar-ad-1')){} ?> </div>
  80.  
  81. <div class="add-box-2"> <?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('obit-sidebar-ad-2')){} ?> </div>
  82.  
  83. <div class="add-box"> <?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('obit-sidebar-ad-3')){} ?> </div>
  84. </div>
  85.  
  86. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement