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
Post a Comment