Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Corps Highlights
- */
- ?>
- <?php get_header(); ?>
- <ul id="breadcrumb">
- <h2>
- <?php if($post->post_parent){ ?>
- <li><?php wp_list_pages('title_li=&include='.$post->post_parent.''); ?> · <span><?php the_title(); ?></span></li>
- <?php } else { ?>
- <li><?php the_title(); ?></li>
- <?php } ?>
- </h2>
- </ul>
- <div id="left_col">
- <?php
- if($post->post_parent)
- $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
- else
- $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
- if ($children) { ?>
- <ul>
- <?php echo $children; ?>
- </ul>
- <?php } ?>
- <div id="quotetop"></div>
- <?php
- $rand_posts = get_posts('category_name=quotes&orderby=rand&numberposts=1');
- foreach( $rand_posts as $post ) :
- setup_postdata($post);
- ?>
- <blockquote id="random_quote">
- <?php the_content(); ?>
- <div id="bottom"></div>
- </blockquote>
- <cite id="sidebarcite"><?php echo get_post_meta($post->ID, "cite", true);?></cite>
- <?php endforeach; ?>
- </div>
- <!--....................................................................
- ....................................................................-->
- <div id="pagecontent">
- <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- query_posts('category_name=highlights&paged=$paged'); ?>
- <?php
- if (have_posts()) :
- while (have_posts()) : the_post();
- ?>
- <div class="entry">
- <h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
- <span class="date"><?php the_time('F, Y'); ?></span>
- <?php the_content(); ?>
- </div>
- <?php endwhile; ?>
- <?php next_posts_link('« Older Entries') ?>
- <?php previous_posts_link('Newer Entries »') ?>
- <?php endif; ?>
- </div>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment