[Plugin: Quick Search] Modification for sites where WordPress URL & Blog URL are different
-
This is an excellent little plugin, however I found that I had to make a minor modification to quick-search.php because within my WordPress installation I have configured different locations for WordPress URL & Blog URL because I like to keep my root directory nice and tidy, whilst all the WordPress stuff is hidden away in another location.
Anyway, as a result of this, the code generates the incorrect value for base_url when passing it to the javascript – it assumes that the ‘Home’ location is the location of my WordPress installation (siteurl/wpurl).
Therefore, to get around this, I needed to substitute the following code:
[quick-search.php: Line 64]
'base_url' => get_option('home'),
to
'base_url' => get_option('siteurl'),
or
'base_url' => get_bloginfo('wpurl'),
After that it works perfectly. Excellent work!
Shane
- The topic ‘[Plugin: Quick Search] Modification for sites where WordPress URL & Blog URL are different’ is closed to new replies.