Info
- 3 posts
- 1 voice
- Started 2 years ago by Rich Pedley
- Latest reply from Rich Pedley
- This topic is not resolved
Search help
-
- Posted 2 years ago #
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 .= "\t\t<div><input name='$s_name' id='$s_id' type='text' class='text-input' value='$s_value' /></div>\n";
$r .= "\t</div>\n\n";
}
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?
-
- Posted 2 years ago #
forgot to mention - using bbPress 1.1-alpha
-
- Posted 2 years ago #
gave up and used my own function to replace the generated form and added it to a functions.php
-
You must log in to post.