Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 14th, 2012  |  syntax: None  |  size: 1.76 KB  |  views: 53  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * Template Name: PressRoom
  4.  *
  5.  * The regular page template  
  6.  * The "Template Name:" bit above allows this to be selectable
  7.  * from a dropdown menu on the edit page screen.
  8.  *
  9.  * @package WordPress
  10.  * @subpackage Twenty_Ten
  11.  * @since Twenty Ten 1.0
  12.  */
  13.  
  14. get_header(); ?>
  15.                 <div id="container">
  16.                         <div id="content" role="main">
  17.  
  18. <h1 class="entry-title">Press Room</h1>
  19. <p>Here is a listing of all Press Releases and Press Coverage</p>
  20.  
  21. <p>&nbsp;</p>
  22.  
  23. <?php query_posts('tag_name=press-release&amp;orderby=date&order=ASC&amp;showposts=20'); ?>
  24.  
  25. <p>&nbsp;</p>
  26.  
  27.         <h2>Press Releases</h2>
  28.  
  29. <?php if (have_posts()) : ?>
  30. <ul>
  31. <?php while (have_posts()) : the_post(); ?>
  32.                        
  33. <li><strong>
  34. <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong>
  35.  
  36.                                 <div class="entry-utility">
  37.                                                 <?php twentyten_posted_in(); ?>
  38.                                 </div> <!--.entry-utility -->          
  39. </li>
  40.  
  41.         <?php endwhile; ?>
  42. </ul>
  43.  
  44. <?php else : ?>
  45. <h2>No Posts Found</h2>
  46. <?php endif; ?>
  47.  
  48.                                 <?php rewind_posts(); ?>
  49.  
  50. <?php query_posts('tag_ID=10&amp;orderby=date&order=ASC&amp;showposts=20'); ?>
  51.  
  52. <p>&nbsp;</p>
  53.  
  54.         <h2>Press Coverage</h2>
  55.  
  56. <?php if (have_posts()) : ?>
  57. <ul>
  58. <?php while (have_posts()) : the_post(); ?>
  59.                        
  60. <li><strong>
  61. <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong>
  62.  
  63.                                 <div class="entry-utility">
  64.                                                 <?php twentyten_posted_in(); ?>
  65.                                 </div> <!--.entry-utility -->          
  66. </li>
  67.         <?php endwhile; ?>
  68. </ul>
  69.  
  70. <?php else : ?>
  71. <h2>No Posts Found</h2>
  72. <?php endif; ?>
  73.  
  74.                         </div><!-- #content -->
  75.                 </div><!-- #container -->
  76.        
  77. <?php get_sidebar(); ?>
  78. <?php get_footer(); ?>
clone this paste RAW Paste Data