Skip to content

Instantly share code, notes, and snippets.

@jameshibbard
Created July 9, 2012 12:41
Show Gist options
  • Save jameshibbard/3076252 to your computer and use it in GitHub Desktop.
Save jameshibbard/3076252 to your computer and use it in GitHub Desktop.
Sample index file for WordPress site
<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content('Read more...'); ?>
<?php endwhile; endif; ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment