Title: 2.1 query_posts issue
Last modified: August 18, 2016

---

# 2.1 query_posts issue

 *  Resolved [mwselz](https://wordpress.org/support/users/mwselz/)
 * (@mwselz)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-query_posts-issue/)
 * I have the following code on page in order to display the latest posts in a single
   category there:
 * `
    <?php query_posts('category_name=News'); //where main is the name of the category
   that you want to show. ?> <?php if (have_posts()) : ?>
 *  <?php while (have_posts()) : the_post(); ?>
 *  <div class="post" id="post-<?php the_ID(); ?>">
    <h2><a href="<?php the_permalink()?
   >" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title();?
   ></a></h2> <small>Posted <?php the_date('','',''); ?> at <?php the_time() ?>.
   </small>
 *  <div class="entry">
    <?php the_content('Read the rest of this entry &raquo;');?
   > <small><?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('
   No Comments »', '1 Comment »', '% Comments »'); ?></small><br /><br /> </div>
 *  </div>
 *  <?php endwhile; ?>
    <div class="navigation"> <div class="alignleft"><?php next_posts_link('&
   laquo; Previous Entries') ?></div> <div class="alignright"><?php previous_posts_link('
   Next Entries &raquo;') ?></div> </div>
 *  <?php else : ?>
    <h2 class="center">Not Found</h2> <p class="center">Sorry, 
   but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH."/
   searchform.php"); ?> <?php endif; ?>
 * The page is “home.php,” designated as my site’s home page through the use of 
   the Filosofo Home Page Control Plugin.
 * Pre-2.1, this would display the latest posts from my News category. Now, it reverts
   to the “Not Found” message.
 * Anyone know what might have changed in 2.1 to cause this, and how I can fix it?
 * Many thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [martinhipp](https://wordpress.org/support/users/martinhipp/)
 * (@martinhipp)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-query_posts-issue/#post-509208)
 * Are you running the CQS Plugin, this is known to cause problems with query_posts
   in 2.1
 *  Thread Starter [mwselz](https://wordpress.org/support/users/mwselz/)
 * (@mwselz)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-query_posts-issue/#post-509350)
 * No… running
    Akismet 2.0 Autometa 0.7 Category Visibility RH Rev 1.1.b1 FAQ .
   04j Filosofo Home-Page Control .83 Fold Category List 1.0b6 Fold Page List 1.6
   navigo 1.1 PHP Exec 1.7 podPress 7.0 WordPress Database Backup 1.8
 * IF that helps anyone diagnose…?
 *  [martinhipp](https://wordpress.org/support/users/martinhipp/)
 * (@martinhipp)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-query_posts-issue/#post-509402)
 * Try disabling Category Visibility RH Rev 1.1.b1 and Filosofo Home-Page Control?
 *  Thread Starter [mwselz](https://wordpress.org/support/users/mwselz/)
 * (@mwselz)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-query_posts-issue/#post-509406)
 * Looks like it was Category Visibility RH Rev… I’ll report to the developer that
   his plugin breaks 2.1…
 * Thanks!
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-query_posts-issue/#post-509414)
 * He’s aware of it: [http://ryowebsite.com/?p=46](http://ryowebsite.com/?p=46)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘2.1 query_posts issue’ is closed to new replies.

## Tags

 * [control](https://wordpress.org/support/topic-tag/control/)
 * [Filosofo](https://wordpress.org/support/topic-tag/filosofo/)
 * [home](https://wordpress.org/support/topic-tag/home/)
 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/21-query_posts-issue/#post-509414)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
