Skip Navigation

[Resolved] render search view in a template – but only search from, without results

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by Ido Angel 6 years ago.

Author
Posts
#1172222

hey,

i placed this code:

			<?php 
			$args = array(
    'title' => 'Search',
);
echo render_view( $args );
			 ?>

in my header template file - but i get both form and results. how do i place only the search form and point it to a different results page?

thanks!

#1172224

that was quick! found it myself:

<?php 
$args = array(
'title' => 'Search',
'target_id' => '500'
);
echo render_view( $args );
?>