You must be logged in to post Login

Lost Your Password?

Search Forums:


Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

no search result with page having only specific cats


10:42 am
October 30, 2007

Dieter Deramoudt



 I have a site ( ) which has on its main page 2 sets of WP posts based on 2 categories

 first part of the page is a list of posts with cat=4

second part of the page is a list of posts with cat =5


e.g. I do a <?php if ( have_posts() ) : query_posts($query_string .'&cat=4'); while ( have_posts() ) : the_post(); ?> to filter on the posts..


It seems that my specific behaviour prevents form displaying search results from the plugin.

Any idea to bypass that ? 

11:28 am
October 30, 2007



posts 1125

Hi Dieter,

I am not sure to understand what you are trying to achieve. By using query_posts, you control which posts show up (query_posts description). Why do you use query_posts if you want to see all kinds of posts and pages ?

Met vriendelijke groeten,


About the Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
12 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710


There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)