Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: about
- */
- ?>
- <?php
- /**
- * The template for displaying all pages.
- *
- * This is the template that displays all pages by default.
- * Please note that this is the WordPress construct of pages
- * and that other 'pages' on your WordPress site will use a
- * different template.
- *
- * @package WordPress
- * @subpackage Twenty_Eleven
- * @since Twenty Eleven 1.0
- */
- get_header(); ?>
- <div id="primary">
- <div id="content" role="main">
- <!-- ADDING CUSTOM POST TYPE (RUNNERS) TO ABOUT US PAGE -->
- <div class="doz-about-runner">
- <?php while ( have_posts() ) : the_post();
- $args = array( 'post_type' => 'dozen_runners', 'posts_per_page' => 4 );
- $loop = new WP_Query( $args );
- while ( $loop->have_posts() ) : $loop->the_post();
- the_title('<h2 class="dd-runners-title">','</h2>');
- echo '<div class="column">';
- the_post_thumbnail('thumbnail', array('class' => 'alignleft'));
- echo the_excerpt();
- echo '</div>';
- endwhile; // end of the loop. ?>
- </div><!-- end doz-about-runner-->
- <?php get_template_part( 'page', 'about' ); ?>
- <?php comments_template( '', true ); ?>
- <?php endwhile; // end of the loop. ?>
- </div><!-- #content -->
- </div><!-- #primary -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement