CPT Text search with wp_dropdown_categories is not working well, return false result

Please review my code, I want to search custom post type text with drop-down.

<form id=”searchform” method=”get” action=”<?php bloginfo(‘url’); ?>”>
<input type=”text” name=”course” size=”15″ value=”<?php echo trim( get_search_query() ); ?>”/>
<?php wp_dropdown_categories(‘show_option_none=All&taxonomy=type’); ?>
<input type=”submit” value=”Search” />
</form>

Read more here:: CPT Text search with wp_dropdown_categories is not working well, return false result

Leave a Reply

Your email address will not be published. Required fields are marked *