Skip to content

Instantly share code, notes, and snippets.

@NickToye
Created August 6, 2012 12:03
Show Gist options
  • Save NickToye/3273952 to your computer and use it in GitHub Desktop.
Save NickToye/3273952 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: Group Page
*/
get_header(); ?>
<div id="main" class="grid_16">
<div id="content" class="grid_12 alpha">
<?php query_posts('showposts=5&cat=1,2,3,4');
while (have_posts()) : the_post(); ?>
Post Title: <?php the_title(); ?>
Cat name: <?php the_category(', ') ?>
Content: <?php the_content();?>
<?php endwhile;?>
</div>
<div id="sidebar" class="grid_4 omega">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment