Skip to content

Instantly share code, notes, and snippets.

Created January 14, 2013 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4534471 to your computer and use it in GitHub Desktop.
Save anonymous/4534471 to your computer and use it in GitHub Desktop.
get_header(); ?>
<div class="underheader">
<div class="slider">
<?php echo minecraft_slider_template(); ?>
</div>
<div id="status">
<?php
$args = array(
'tax_query' => array(
array(
'post_type' => 'status',
'posts_per_page' => 5
)
)
);
query_posts( $args );
?>
<?php $query = new WP_Query(); ?>
<?php if($query->have_posts()) : ?><?php while($query->have_posts()) : $query->the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>
</div>
<div class="clear"></div>
<div id="primary">
<div id="control">
<?php get_search_form(); ?>
</div>
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<?php minecraft_content_nav( 'nav-above' ); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php minecraft_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'minecraft' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'minecraft' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment