static/dynamic page with 2.7 with query_posts & category_name=
-
One of my sites uses a template page to pull in both static and dynamic content on the home page. It worked fine until I upgraded to 2.7. Now the home page displays blank. No error, no sign of any design. Just a blank page.
Going directly to another page on the site pulls up the site just fine (so it’s not a theme issue) and for the moment I’m using a different page as the home page…
Since I’ve narrowed it down to my template file, I’m curious to know if my template is just outdated with the newest release or what else could be the issue… The code that seems to be causing the trouble is below… Any ideas?
<h2>What's Happening at Faith</h2> <?php $temp_query = $wp_query; ?> <?php query_posts('category_name=faith-reformed-news&showposts=3'); ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php the_content(); ?> </div> <?php endwhile; ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘static/dynamic page with 2.7 with query_posts & category_name=’ is closed to new replies.