WordPress only search posts.

<form class="col-md-12" style="margin: 0 0 0 0; padding: 0; width:100%; display: block; position: relative;" id="searchform" action="<?php bloginfo('home'); ?>/" method="get"> <input id="s" maxlength="150" name="s" type="text" value="" class="txt col-md-12" placeholder="Search Articles..." /> //Below you can change the value below to only search a specific custom post type. <input name="post_type" type="hidden" value="post" /> </form>
This also uses bootstrap.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.