I want to make a search page template for custom post type. I make search form, but i don’t get any idea for search template.

Here is my form code:

<form role="search" method="get" id="searchform" class="clearfix" action="<?php echo home_url( '/' ); ?>" autocomplete="off">
            <input type="text" onfocus="if (this.value == '<?php _e("Search Articles...", "foo") ?>') {this.value = '';}" onblur="if (this.value == '')  {this.value = '<?php _e("Search Articles...", "foo") ?>';}" value="<?php _e("Search Articles...", "foo") ?>" name="s" id="s" />
            <input type="hidden" name="post_type" value="foo_work" />
        </form>

Please give me solution for this.

Read more here: How to make custom post type search template


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: