search.php及びsingle.phpでの特定カテゴリの除外についてお聞きしたいのですが、投稿検索結果にある特定のカテゴリ(ここではcat=34)に属する投稿を除外したいので、query_postでcat=-34などを試したのですが、全く反応せず、検索も機能しなくなりました。 <?php if (have_posts()) : ?> <h2 class="pagetitle"><?php _e('Search Results'); ?>"<?php the_search_query(); ?>"</h2> <?php while (have_posts()) : the_post(); ?> <div class="entries"> <ul><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a><