Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0c34196cc2
Fetching contributors…

Cannot retrieve contributors at this time

executable file 42 lines (32 sloc) 1.295 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
<?php
/**
* Template Name: Demos, no sidebar
*
* A custom page template without sidebar.
*
* The "Template Name:" bit above allows this to be selectable
* from a dropdown menu on the edit page screen.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/

get_header(); ?>

<div id="container" class="wide">
<div id="content" role="main">


<?php $loop = new WP_Query( array( 'post_type' => 'demo', 'posts_per_page' => 99999 ) ); ?>

<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>

<div id="post-<?php the_ID(); ?>" <?php post_class('box'); ?>>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<span class="thumb"><?php the_post_thumbnail( 'thumbnail' ); ?></span>
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</div><!-- #post-## -->

<?php #comments_template( '', true ); ?>

<?php endwhile; ?>

</div><!-- #content -->
</div><!-- #container -->

<?php get_footer(); ?>
Something went wrong with that request. Please try again.