Skip to content

Instantly share code, notes, and snippets.

@andrastudio
Created November 18, 2012 02:31
Show Gist options
  • Save andrastudio/4103028 to your computer and use it in GitHub Desktop.
Save andrastudio/4103028 to your computer and use it in GitHub Desktop.
<?php get_header(); ?>
<!-- START: MAIN CONTENT -->
<div id="main-content" class="clearfix">
<div id="lcol-wrapper">
<!-- START: LEFT COLUMN -->
<div id="leftcol" class="clearfix">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage') ) { } ?>
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args=array(
'page_id' => 7, // this your page ID
'post_status' => 'publish'
);
$wp_query = new WP_Query();
$wp_query->query($args);
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- START: POST CONTENT -->
<div id="post-content" class="clearfix">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="inner">
<h1 class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
<?php the_content(); ?>
<?php warrior_admin_update_link(); ?>
</div>
</div>
</div>
<!-- END: POST CONTENT -->
<?php comments_template( '', true ); ?>
<?php endwhile; endif; ?>
</div>
<!-- END: LEFT COLUMN -->
</div>
<?php get_sidebar(); ?>
</div>
<!-- END: MAIN CONTENT -->
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment