September 7, 201214 yr Hello everyone, I am really struggling with a project I'm working on. I need to create a drop down menu containing my custom post types, with a search/submit button. I have two custom post types and would like to be able to filter them. e.g. Here is a link to what I need to create: http://www.jackod.com/ofato_blog/Picture%2010.png Please bare in mind I have very little PHP knowledge and need some kind of tutorial or plugin. Any help would be appreciated, the deadlines lurking. Thanks in advance Jack
September 10, 201214 yr Not exactly what you've asked for but this allows you to search by post category: <form role="search" method="get" id="searchform" action="<?php bloginfo('siteurl'); ?>"> <div> <label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> in: <?php wp_dropdown_categories( 'show_option_none=Select category&show_count=1&orderby=name&exclude=9' ); ?> <input type="submit" id="searchsubmit" value="Search" /> </div> </form>
Create an account or sign in to comment