Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/paulfarrow.com/httpdocs/wp-content/plugins/super-cool-qrcode/super-cool-qrcodes.php:1) in /var/www/vhosts/paulfarrow.com/httpdocs/wp-includes/feed-rss2.php on line 8
PaulFarrow.com » search http://www.paulfarrow.com Blog by Farrow.... Wed, 03 Mar 2010 14:06:40 +0000 http://wordpress.org/?v=2.8.4 en hourly 1 Wordpress Search & Permalinks http://www.paulfarrow.com/index.php/2009/05/09/wordpress-search-permalinks/ http://www.paulfarrow.com/index.php/2009/05/09/wordpress-search-permalinks/#comments Sat, 09 May 2009 12:41:15 +0000 Paul Farrow http://www.paulfarrow.com/?p=237 Using the carrington theme and after switching to permalinks I noticed that the wordpress search doesnt seem to work.  Not sure if this is by design or what.  After a little bit of scrabbling around I decided to hack the scripts so I changed the search.php script which sits in themes/carrington-blog/forms.  I commented out the permalinks section of the if like so

/*
if (get_option('permalink_structure') != '') {
    $onsubmit = "location.href=this.action+
'search/'+encodeURIComponent(this.s.value).replace(/%20/g, '+'); return false;";
}
else {
    */
    $onsubmit = '';
//}

so that it always does the non permalink bit whether or not it is selected.  Seems to work still, all comments welcomed on this.

]]>
http://www.paulfarrow.com/index.php/2009/05/09/wordpress-search-permalinks/feed/ 0