Search root in search.php in a subdirectory wordpress installation -


i have wordpress install in subdirectory, search function not work unless manually include root directory. how change code in search.php accomplish full site search?

here's standard code:

<form class="art-search" method="get" name="searchform" action="<?php echo esc_url( site_url() ); ?>/">     <input name="s" type="text" value="<?php echo esc_attr(get_search_query()); ?>" />     <input class="art-search-button" type="submit" value="" /> </form> 

i need search feature jump 1 directory , search entire root. wp directory in subdirectory "new" search executes:

(site)/new/?s=test *but not return results.*   

if sub removed:

(site)/?s=test *returns results.*  

i'm sure easy fix, haven't figured out.

thanks in advance, jason

well, in case wondering, solution turns out changing "site_url" "home_url."


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -