Search help
-
Having tracked code through I ended up in class.bb-query.php
if ( $search ) {
if ( $_post ) {
$s_value = esc_attr( $q_post_text );
$s_name = 'post_text';
$s_id = 'post-text';
} else {
$s_value = esc_attr( $q_search );
$s_name = $s_id = 'search';
}
$r .= "t<div><label for="$s_id">" . __('Search term') . "</label>n";
$r .= "tt<div><input name='$s_name' id='$s_id' type='text' class='text-input' value='$s_value' /></div>n";
$r .= "t</div>nn";
}
Now this is affecting a second search, by changing search to post-text, and the result of a second search is always zero results.
Can anyone explain why, and is there an easy way to change this, or should I just code my own search form?
- You must be logged in to reply to this topic.