Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Marcomail

    (@marcomail)

    i think the problem is this:

    <?php $wp_query->query_vars[“cat”] = 14; ?>
    <?php $wp_query->get_posts(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    i have inserted this code in the index to show only a specific category, but now the search doesn’t work correctly.

    how can i do ?

    Thread Starter Marcomail

    (@marcomail)

    i have solved, i’ve created the search.php template 🙂

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

The topic ‘Search work in subcategories ?’ is closed to new replies.