How to make search work in categories that are not displayed on the front page?
-
Hello there,
I ran into strange problem using wordpress. In my main index template I added this line:
<?php query_posts ($query_string . '&cat=6'); ?>
so now one part of it looks like this:
<?php query_posts ($query_string . '&cat=6'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
This line helps me to show only ONE category posts in a front page. It all works fine, but the problem is, the search only works in that particular category, which is shown on the front page. In other categories search does not work, for example when you search a word that is in a different categories post, you get nothing. You can only search a word that is in a category shown on a front page.
How to fix this problem?
Thanks, awaiting for your answers…
- The topic ‘How to make search work in categories that are not displayed on the front page?’ is closed to new replies.