Limit Search to Only Post Title
-
I’m using the following to search a custom post type:
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <input type="hidden" name="post_type" value="attorney" /> <input type="text" value="" name="s" /> <input type="submit" value="Search" /> </form>
Is there a way to only search the post title and nothing else?
- The topic ‘Limit Search to Only Post Title’ is closed to new replies.