title: Custom Wordpress Theme php is processed in source code but not on page
body: <p>I'm in the process of creating a custom WP theme for my portfolio. I cannot find a solution to this issue anywhere. I've set up a custom page with a loop to display my portfolio posts in a grid format on my homepage, <a href="http://www.gregoryrich.com" rel="nofollow">www.gregoryrich.com</a>. I want my posts to display in full text (not in a grid format) on <a href="http://www.gregoryrich.com/blog" rel="nofollow">www.gregoryrich.com/blog</a> where I am using my default index template. I've gotten the grid to work, but the blog page is not displaying my posts. The strange thing is that when I view my source, the post content is displaying in the source code, but it's just not displaying on the page. I've adjusted the reading settings, reset my permalinks many times, deactivated all of my plugins, and even reinstalled Wordpress completely. It seems like I might be missing something obvious, but I cannot figure it out and it's really frustrated me. Any help anyone can offer would be extremely appreciated.</p>
  
  <p>My grid loop:</p>
  
  <pre><code>&lt;?php
  /*
  Template Name: Home
  */
  ?&gt;
  
  
  `&lt;?php get_header(); ?&gt;
  
  &lt;div id="content" class="group"&gt;
  
     &lt;div id="gridcontainer"&gt;
      &lt;?php
      $counter = 1; //start counter
  
      $grids = 2; //Grids per row
  
      global $query_string; //Need this to make pagination work
  
  
      /*Setting up our custom query (In here we are setting it to show 12 posts per page and eliminate all sticky posts) */
      query_posts($query_string . '&amp;caller_get_posts=1&amp;posts_per_page=12');
  
  
      if(have_posts()) :  while(have_posts()) :  the_post();
      ?&gt;
      &lt;?php
      //Show the left hand side column
      if($counter == 1) :
      ?&gt;
                  &lt;div class="griditemleft"&gt;
                      &lt;div class="postimage"&gt;
                          &lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_post_thumbnail('category-thumbnail'); ?&gt;&lt;/a&gt;
                      &lt;/div&gt;
                      &lt;h3&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h3&gt;
                  &lt;/div&gt;
      &lt;?php
      //Show the right hand side column
      elseif($counter == $grids) :
      ?&gt;
      &lt;div class="griditemright"&gt;
                      &lt;div class="postimage"&gt;
                      &lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_post_thumbnail('category-thumbnail'); ?&gt;&lt;/a&gt;
                      &lt;/div&gt;
                      &lt;h3&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h3&gt;
  &lt;/div&gt;
      &lt;div class="clear"&gt;&lt;/div&gt;
      &lt;?php
      $counter = 0;
      endif;
      ?&gt;
      &lt;?php
      $counter++;
      endwhile;
      //Pagination can go here if you want it.
      endif;
      ?&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;?php get_footer(); ?&gt;`
  </code></pre>
  
  <p>And my index page loop:</p>
  
  <pre><code>&lt;?php get_header(); ?&gt;
  
  &lt;div id="content" class="group"&gt;
  
  &lt;article&gt;
  
  &lt;?php // Display blog posts on any page @ http://m0n.co/l
          $temp = $wp_query; $wp_query= null;
          $wp_query = new WP_Query(); $wp_query-&gt;query('showposts=5' . '&amp;paged='.$paged);
          while ($wp_query-&gt;have_posts()) : $wp_query-&gt;the_post(); ?&gt;
  
          &lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt;
      &lt;div class="post-header"&gt;
          &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
      &lt;/div&gt;&lt;!--end post header--&gt;
      &lt;div class="entry clear"&gt;
          &lt;?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail(); ?&gt;
          &lt;?php echo get_template_part(); ?&gt;&lt;?php the_content(); ?&gt;
          &lt;?php edit_post_link(); ?&gt;
          &lt;?php wp_link_pages(); ?&gt;
      &lt;/div&gt;&lt;!--end entry--&gt;
    &lt;/div&gt;&lt;!--end post--&gt;
  
  &lt;?php endwhile; ?&gt;
  
          &lt;?php if ($paged &gt; 1) { ?&gt;
  
          &lt;nav id="nav-posts"&gt;
              &lt;div class="prev"&gt;&lt;?php next_posts_link('&amp;laquo; Previous Posts'); ?&gt;&lt;/div&gt;
              &lt;div class="next"&gt;&lt;?php previous_posts_link('Newer Posts &amp;raquo;'); ?&gt;&lt;/div&gt;
          &lt;/nav&gt;
  
          &lt;?php } else { ?&gt;
  
          &lt;nav id="nav-posts"&gt;
              &lt;div class="prev"&gt;&lt;?php next_posts_link('&amp;laquo; Previous Posts'); ?&gt;&lt;/div&gt;
          &lt;/nav&gt;
  
          &lt;?php } ?&gt;
  
          &lt;?php wp_reset_postdata(); ?&gt;
  
  &lt;/article&gt;
  
  &lt;/div&gt;
  
  &lt;?php get_footer(); ?&gt;
  </code></pre>