Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Grants
- */
- ?>
- <?php get_header(); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <h1><?php the_title(); ?> <span><?php echo get_post_meta($post->ID, 'board-title', true); ?></span></h1>
- <?php get_sidebar(); ?>
- <div class="post" id="post-<?php the_ID(); ?>">
- <div id="content" class="entry">
- <?php the_content(); ?>
- <?php global $query_string; $posts = query_posts( array( 'cat' => 9, 'paged' => get_query_var('page') ) );?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php global $more; $more = 0; ?> <!-- enabling 'more' -->
- <article>
- <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
- <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>
- <?php the_content('Continue Reading »'); ?>
- </article>
- <?php endwhile; ?>
- <?php endif; ?><?php wp_pagenavi( array( 'type' => 'multipart' , 'query' => $posts) ); ?>
- <?php wp_reset_query(); ?>
- <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
- </div>
- </div>
- <?php endwhile; endif; ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement