Skip to content

Instantly share code, notes, and snippets.

@csu
Created September 17, 2012 12:01
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 csu/3736928 to your computer and use it in GitHub Desktop.
Save csu/3736928 to your computer and use it in GitHub Desktop.
Bits WordPress Page Template
<?php
/*
Template Name: Bits
*/
get_header(); ?>
<?php
query_posts('cat=13');
while ( have_posts() ) : the_post(); ?>
<article id="<?php the_ID(); ?>" class="post">
<h2>
<?php print_post_title() ?>
</h2>
<?php the_content(); ?>
<h2><?php //echo get_the_category_list(', '); ?></h2>
</article>
<?php endwhile; // End the loop. Whew. ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment