Categories
Webdevelopment

Search in specific post_type

HTML

<form action="/" method="POST">
	<input type="search" name="s" placeholder="">
	<button type="submit" type="search-button"><?php _e('Search', 'layback'); ?></button>
	<input type="hidden" name="post_type" value="product" />
</form>