Advertisement
Guest User

Untitled

a guest
Jun 24th, 2012
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.32 KB | None | 0 0
  1. <?php
  2.  
  3.     /*
  4.         Template Name: Grants
  5.     */
  6. ?>
  7. <?php get_header(); ?>
  8.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  9.         <h1><?php the_title(); ?> <span><?php echo get_post_meta($post->ID, 'board-title', true); ?></span></h1>
  10.         <?php get_sidebar(); ?>
  11.         <div class="post" id="post-<?php the_ID(); ?>">
  12.             <div id="content" class="entry">
  13.                 <?php the_content(); ?>
  14.                
  15.                
  16.                
  17.                 <?php global $query_string; $posts = query_posts( array( 'cat' => 9, 'paged' => get_query_var('page') ) );?>
  18.                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  19.                 <?php global $more; $more = 0; ?> <!-- enabling 'more' -->
  20.                     <article>
  21.                         <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  22.                         <p class="meta">Published on: <?php the_time('F jS, Y') ?> | Courtesy of <a href="http://<?php echo get_post_meta($post->ID, 'author', true); ?>"><?php echo get_post_meta($post->ID, 'author', true); ?></a></p>
  23.                         <?php the_content('Continue Reading &raquo;'); ?>
  24.                     </article>
  25.                 <?php endwhile; ?>
  26.                 <?php endif; ?><?php wp_pagenavi( array( 'type' => 'multipart' , 'query' => $posts) ); ?>
  27.                 <?php wp_reset_query(); ?>
  28.                
  29.                
  30.                
  31.                
  32.                 <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
  33.             </div>
  34.         </div>     
  35.     <?php endwhile; endif; ?>
  36. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement