Advertisement
Guest User

Untitled

a guest
Jul 12th, 2012
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: about
  4. */
  5. ?>
  6.  
  7. <?php
  8. /**
  9. * The template for displaying all pages.
  10. *
  11. * This is the template that displays all pages by default.
  12. * Please note that this is the WordPress construct of pages
  13. * and that other 'pages' on your WordPress site will use a
  14. * different template.
  15. *
  16. * @package WordPress
  17. * @subpackage Twenty_Eleven
  18. * @since Twenty Eleven 1.0
  19. */
  20.  
  21. get_header(); ?>
  22.  
  23. <div id="primary">
  24. <div id="content" role="main">
  25.  
  26.  
  27.  
  28. <!-- ADDING CUSTOM POST TYPE (RUNNERS) TO ABOUT US PAGE -->
  29. <div class="doz-about-runner">
  30.  
  31. <?php while ( have_posts() ) : the_post();
  32. $args = array( 'post_type' => 'dozen_runners', 'posts_per_page' => 4 );
  33. $loop = new WP_Query( $args );
  34.  
  35. while ( $loop->have_posts() ) : $loop->the_post();
  36. the_title('<h2 class="dd-runners-title">','</h2>');
  37. echo '<div class="column">';
  38.  
  39. the_post_thumbnail('thumbnail', array('class' => 'alignleft'));
  40. echo the_excerpt();
  41.  
  42. echo '</div>';
  43. endwhile; // end of the loop. ?>
  44.  
  45. </div><!-- end doz-about-runner-->
  46.  
  47. <?php get_template_part( 'page', 'about' ); ?>
  48.  
  49. <?php comments_template( '', true ); ?>
  50.  
  51. <?php endwhile; // end of the loop. ?>
  52.  
  53. </div><!-- #content -->
  54. </div><!-- #primary -->
  55.  
  56. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement