• Is there a way to build a search bar for a custom post type? www.remarpro.com’s codex has this as the code for the search bar

    <form role="search" method="get" id="searchform" action="<?php bloginfo('url'); ?>">
        <div><label class="screen-reader-text" for="s">Search for:</label>
            <input type="text" value="" name="s" id="s" />
            <input type="submit" id="searchsubmit" value="Search" />
        </div>
    </form>

    I tried replacing the bloginfo(‘url’) with the slug url for my custom post types, but nothing. Any ideas?

Viewing 3 replies - 16 through 18 (of 18 total)
Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Custom Post Type Search Bar’ is closed to new replies.