SHARE
TWEET

Untitled

a guest May 29th, 2013 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * The template for displaying all pages.
  4.  *
  5.  * This is the template that displays all pages by default.
  6.  * Please note that this is the WordPress construct of pages
  7.  * and that other 'pages' on your WordPress site will use a
  8.  * different template.
  9.  *
  10.  * @package WordPress
  11.  * @subpackage Twenty_Twelve
  12.  * @since Twenty Twelve 1.0
  13.  */
  14.  
  15. get_header(); ?>
  16.  
  17.         <div id="primary" class="site-content full-width">
  18.                 <div id="content" role="main">
  19.  
  20. <h3>Recent Articles</h3>
  21. <ul>
  22. <?php
  23. // start query posts loop
  24. // this loop is above the main page loop
  25.     query_posts('showposts=5');
  26. ?>
  27. <?php while (have_posts()) : the_post(); ?>
  28.     <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
  29.     <?php the_excerpt(); ?></li>
  30. <?php endwhile;
  31. wp_reset_query();
  32. // end query posts loop
  33.  
  34. // start main page loop below
  35. ?>
  36. </ul>
  37.  
  38.                         <?php while ( have_posts() ) : the_post(); ?>
  39.                                 <?php get_template_part( 'content', 'page' ); ?>
  40.                                 <?php comments_template( '', true ); ?>
  41.                         <?php endwhile; // end of the loop. ?>
  42.                 </div><!-- #content -->
  43.         </div><!-- #primary -->
  44.  
  45. <?php get_sidebar(); ?>
  46. <?php get_footer(); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top