Skip to content

Instantly share code, notes, and snippets.

@NickToye
Created September 3, 2012 19:52
Show Gist options
  • Save NickToye/3612850 to your computer and use it in GitHub Desktop.
Save NickToye/3612850 to your computer and use it in GitHub Desktop.
<?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 Starkers
* @since Starkers 3.0
*/
/*
Template Name: Concerts Page
*/
get_header(); ?>
<div id="content" class="grid_16">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="hero">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail();
}
?>
</div>
<div id="main-content" class="grid_12 alpha">
<div class="gutter">
<?php if ( is_front_page() ) { ?>
<h2><?php the_title(); ?></h2>
<?php } else { ?>
<h1><?php the_title(); ?></h1>
<?php } ?>
<?php query_posts('post_type=concerts&posts_per_page=5'); ?>
<?php
get_template_part( 'loop-concerts', 'index' );
?>
<?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'twentyten' ), 'after' => '' ) ); ?>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '', '' ); ?>
<? wp_reset_query(); ?>
</div>
</div>
<?php endwhile; ?>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment