<?php
/**
* Template Name: Flyers Page
*
* 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_Ten
* @sin
* Selectable from a dropdown menu on the edit page screen.
*/
get_header(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri();?>/flyercss.css" />
<div id="container">
<div id="content" role="main">
<?php
//$loop = new WP_Query( array( 'post_type' => 'flyers', 'posts_per_page' => 3 ) );
while ( have_posts() ) : the_post();
?>
<div class="flyer">
<div class="thumb-fly"><?php the_post_thumbnail('full');
?></div>
<h3 class="flyertitle"><?php the_title(); ?></h3>
<p><?php the_content(); ?></p>
<?php echo the_category(); ?>
<h5><?php echo get_the_author(); ?></h5>
<?php
endwhile;
?>
</div>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
try this .. make a page and choose this custome template for this ...