Need display search results on other page, no home_url( '/' ) page.
-
The current search results display on home_url( ‘/’ ) page, because the searchform.php uses:
<form method=”get” id=”searchform” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>I have a page with a search form on its sidebar. I would like to display search results on this page, no wordpress default search results page, after I input something in search form box and submit .
I try to change “action” setting above, but got a 404 error.any help will be appreciated.
- The topic ‘Need display search results on other page, no home_url( '/' ) page.’ is closed to new replies.