<?php if (have_posts()) { while (have_posts()) { the_post(); $post_name = $wpdb->get_var($wpdb->prepare("SELECT post_name FROM wp_posts WHERE id = %s", get_the_ID())); include_header($post_name . '-' . get_the_ID() . "-page"); ?> <div class="wrapper"> <?php include_sidebar($post_name); ?> <div id="right-content"> <div id="post"> <h2><?php the_title(); ?> </h2> <div id="context"> <?php the_content(''); ?> </div> </div> <?php } } else { ?> <p>Sorry, but you're it the wrong place.</p>
<?php $color = "red"; include 'header.php'; get_header(); ?> <div class="wrapper"> <?php include_sidebar('topics'); ?> <div id="right-content"> <h2 class="title-header"><?php single_cat_title(); ?> </h2> <div id="posts"> <?php $x = 0; ?> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <div class="shallow-post<?php if ($x % 2) { ?>
<?php include_header('tags'); ?> <div class="wrapper"> <?php include_sidebar(); ?> <div id="right-content"> <h2 class="title-header"><?php single_tag_title(); ?> </h2> <div id="posts"> <?php $x = 0; ?> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <div class="shallow-post<?php if ($x % 2) { ?> alt<?php }
<?php include_header('post'); ?> <div class="wrapper"> <?php include_sidebar('post'); ?> <div id="right-content"> <div id="post"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <h2><?php the_title(); ?> </h2> <div id="context"> <?php the_content(''); ?> </div> <span class="meta">posted on <?php strtolower(the_time('l, F jS, Y')); ?> by <a href="<?php the_author_url();
<?php include_header(); ?> <div class="wrapper"> <?php include_sidebar('home'); ?> <div id="right-content"> <div id="posts"> <?php $x = 0; ?> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <div class="shallow-post<?php if ($x % 2) { ?> alt<?php } ?> "> <?php if (has_post_thumbnail()) {
<?php include_header('footer'); ?> <div class="wrapper"> <?php include_sidebar('footer'); ?> <div id="right-content"> <h2 class="search center">Sorry, we couldn't find what you were looking for.</h2> <div class="clear"></div> </div> <div class="clear"></div> </div> <?php get_footer();