Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (25 sloc) 778 Bytes
<?php
/*
* Template Name: Custom Post Type Archive
*
* @package WordPress
* @subpackage Clean Theme
*/
get_header();
?>
<section id="main">
<?php query_posts('post_type=portfolio&numberposts=-1');?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header class="post-header">
<h1 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<div class="cb"></div>
</header>
<section class="post-content">
<a href="<?php the_permalink() ?>"><?php the_post_thumbnail('thumbnail'); ?></a>
</section>
</article>
<?php endwhile; ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>