I would like to display the wordpress search results on a page which I've created in the wordpress backend. I need a page, because I've custom content on this page which should be changed by backend users. So I can't just use the search.php file.
I've created a page in the backend and assigned a template with all needed code to display the results of a search, but the question is, how to target the searchform to this page.
With this code:
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
The searchform is using the search.php file to display the results.
Is there any way to use an id in the action parameter or something like that?
Thanks for your help!
home_url( '/' )
withhome_url( '/your-page' )
– karpstrucking Jan 16 '15 at 16:24