RE: How to configure the wordpress search form?

My wordpress search form  not working

Rudradeep Senior Developer Asked on March 4, 2017 in WORDPRESS.
Add Comment
1 Answers

<div><form action="<?php echo home_url( '/' ); ?>" method="get">

<input type="text" name="s" id="search" value="<?php the_search_query(); ?>" />

<input type="image" alt="Search" src="<?php bloginfo( 'template_url' ); ?>/images/search.png" />

<input type="hidden" value="post" name="post_type" id="post_type" />

</form>

</div>

Team Leader Answered on March 9, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.