Forums

[Plugin: Quick Search] Modification for sites where Wordpress URL & Blog URL are different (1 post)

  1. ballinascreen
    Member
    Posted 5 months ago #

    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

    http://wordpress.org/extend/plugins/quick-search/

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 5 months ago by ballinascreen
  • WordPress version: 2.7.1
  • This topic is not a support question