Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WP How to Create a Custom Post Drop Down Menu Filter

Featured Replies

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

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.