WordPress Query Posts From Category Post on Static Page

Weird Problem!, try the following:

  • Make sure that the targeted categories are not empty.
  • If you are using custom post type,include it in the query 'post_type'=>'advertisement' for example.
  • If the targeted categories are special taxonomies,make sure to include it in the query : 'term'=>'cars' along with child 'cars'=>'toyota'.

    • in this example and just to make it clear : cars is like category and toyota is like uncategorized.

One last thing: trace the query by echoing the query to find out what is the exact arriving query:

echo $query_string;;
place it in the top of the page before the <?php if ( have_pos... and right after the query_posts(..);

please tell us the results of the query in case it didn’t work.