Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Obiturary Page
- *
- * @package WordPress
- * @subpackage Twenty_Ten
- * @since Twenty Ten 1.0
- */
- get_header(); ?>
- <div id="content">
- <h2 class="title-heading">Obituaries</h2>
- <?php query_posts( array ( 'category_name' => 'Obituaries', 'posts_per_page' => 10 ) ); while ( have_posts() ) : the_post();
- ?>
- <div class="category-post-box">
- <div class="hentry"><?php //$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
- <?php //if($image):?>
- <div class="alignleft"><a href="<?php the_permalink();?>"><?php the_post_thumbnail('search-thumb2'); ?></a></div>
- <?php //endif; ?>
- <h2 class="entry-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h2>
- <div class="entry-meta"><a href="#"><span class="entry-date"><?php echo get_the_date('m/d/y');?></span></a></div>
- <?php if ( get_post_meta($post->ID, 'Author Name', true) ) : ?>
- <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>
- <?php endif; ?>
- <!-- .entry-meta -->
- <div class="entry-content">
- <?php echo excerpt1(60);?>
- </div>
- <a href="<?php the_permalink();?>" class="keepreading">Keep Reading >>></a>
- <!-- .entry-content -->
- </div>
- </div>
- <?php endwhile; wp_reset_query();
- ?>
- <div class="pagination">
- <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>
- </div>
- <br class="clear" />
- </div>
- </div>
- <div id="primary">
- <div class="add-box"><?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('obit-sidebar-ad-1')){} ?> </div>
- <div class="add-box-2"> <?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('obit-sidebar-ad-2')){} ?> </div>
- <div class="add-box"> <?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('obit-sidebar-ad-3')){} ?> </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement