Viewing 5 replies - 1 through 5 (of 5 total)
  • It’s tying search to whatever category is listed in the dropdown list just below. Do these reside in the same HTML form elements? If so, you’ll need to edit the sidebar template and place them in separate ones.

    Thread Starter boneless

    (@boneless)

    How can that be? before the new theme search worked ok.
    My blog uses a separate header.php and footer.php
    the sidebars are in the footer.php and the same for every page. So yes, the code is in the same php-form, but it always has been.

    Thread Starter boneless

    (@boneless)

    this is the code from the footer.php

    <id=”search”>
    <label for=”s”><?php _e(‘Zoeken:’); ?></label>
    <form id=”searchform” method=”get” action=”<?php echo $PHP_SELF; ?>”>
    <div>
    <input type=”text” name=”s” id=”s” size=”15″ />
    <input type=”submit” name=”submit” value=”<?php _e(‘nu zoeken’); ?>” />
    </div>

    <id=”categories”><?php _e(‘categorie:’); ?>
    <form action=”<?php echo $PHP_SELF ?>” method=”get”>
    <?php dropdown_cats(); ?>
    <input type=”submit” name=”submit” value=”Kies!” />
    </form>

    When I referred to HTML form above, I was talking about the <form> tag. Nothing to do with PHP or your templates.

    Note in the code above how the “searchform” form element doesn’t have a closing </form> before the form starts for your dropdown categories list. Insert that just after the closing </div> surrounding the search form.

    Thread Starter boneless

    (@boneless)

    Thanks! and thanks again!
    that was the problem, problem solved now.
    Did I say thanks?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Something wrong with search’ is closed to new replies.