<?php
/**
* Template Name: PressRoom
*
* The regular page template
* The "Template Name:" bit above allows this to be selectable
* from a dropdown menu on the edit page screen.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="container">
<div id="content" role="main">
<h1 class="entry-title">Press Room</h1>
<p>Here is a listing of all Press Releases and Press Coverage</p>
<p> </p>
<?php query_posts('tag_name=press-release&orderby=date&order=ASC&showposts=20'); ?>
<p> </p>
<h2>Press Releases</h2>
<?php if (have_posts()) : ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li><strong>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong>
<div class="entry-utility">
<?php twentyten_posted_in(); ?>
</div> <!--.entry-utility -->
</li>
<?php endwhile; ?>
</ul>
<?php else : ?>
<h2>No Posts Found</h2>
<?php endif; ?>
<?php rewind_posts(); ?>
<?php query_posts('tag_ID=10&orderby=date&order=ASC&showposts=20'); ?>
<p> </p>
<h2>Press Coverage</h2>
<?php if (have_posts()) : ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li><strong>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong>
<div class="entry-utility">
<?php twentyten_posted_in(); ?>
</div> <!--.entry-utility -->
</li>
<?php endwhile; ?>
</ul>
<?php else : ?>
<h2>No Posts Found</h2>
<?php endif; ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>