That happens because wp_dropdown_categories, by default, defines the name of the dropdowns as ‘cat’.
You are showing 2 dropdowns in the form, and both are named ‘cat’, because you didn’t define a name for them. So when you submit the form, you get two query vars named cat.
For example, if you want the second dropdown to be called states, you would have something like this:
<?php wp_dropdown_categories('name=states&show_option_all=All U.S. States&taxonomy=states&depth=2&orderby=name&show_count=1'); ?>
But how do you plan to use these dropdowns in filtering the content?
Related Posts:
- Different post sort order within different categories
- How to display data in archive page?
- How to display posts via custom taxonomy terms using checkboxes?
- How to display term in archive page?
- How to get alphabetic listing x other posts, based on first letter post?
- custom sort posts in archive/taxanomy page
- How to Change Order of Posts in Admin?
- Difference between an archive and a page listing posts
- Elegant way to include only published posts with get_objects_in_term()?
- Show WordPress Custom Taxonomy Items Based On a Selected Item From Another Custom Taxonomy
- How to Group Posts by the First Letter or Number?
- How are terms connected with posts in database?
- blog posts sorting doesnt work while using get_query_var
- Create an “All Posts” or “Archives” Page with WordPress 3.0?
- How to display comments and comment form on custom post type?
- Convert IPTC keywords to blog post tags
- Importing data from spreadsheet into wordpress DB, along with custom taxonomies and their terms
- Possible to create a permalink to sort with meta_key?
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- deleting terms programmatically
- How do I get the slug of a custom taxonomy category of a post?
- How to display sorted posts in the ‘All Posts’ page
- Using Custom Posts with Metaboxes and Drop-downs
- How to automate filing a form as a user
- Does an action fire when adding a tag via the “Tags” meta box?
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- Sorting posts according to the term they belong to
- Sorting posts according to view counts not working
- Submitting POST data to a custom page template triggers a 404, why?
- disable column on post and user list
- Display all months with posts and inside each month show the 5 latest posts
- Ajax posts filter by date, comments, top views, top likes
- Get posts by name and taxonomy term
- Guest Author – How to display posts on /author/ archive page
- Is it possible to create a form post wordpress custom navigation link?
- Pass data between pages
- Redirection not working in this front end post submission form?
- How to build a site with a map that shows where people offer and need help?
- Force the “Choose from the most used tags” meta box section to always be expanded
- CF7 upload file failing [closed]
- List category posts alphabetically on archive.php
- How to convert contact form 7 submission to post after submission? [closed]
- How to sort posts inside categories
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- How can I setup a relationship using categories in WordPress?
- How to display excerpt post on hamepage and archive pages?
- 404 error on default post type and default taxonomy fronted page
- Increase 10 post limit per page
- Automatically create a new page daily with last three posts
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- outputting posts’ taxonomies: cant get ‘get_the_taxonomies’ working
- Loop parent terms {display posts} AND loop child terms {display posts}
- Is there a query string for edit.php to show all posts that have no custom taxonomy terms?
- Custom Post Type archive
- Post filtering is returning blank page
- Does WP automatically tag posts into the archive?
- Sort by last word in title
- singular posts using archive styling
- How to get the form code from the edit page of a specific post?
- Post-Archive like a page in a specific subdirectory
- adding my posts (author posts) in menu
- How to view all posts (on site, not admin) that are uncategorized?
- Highlighting Current Category in the Archive and Feeds page
- Standalone form does not post to the url when form fields are populated (otherwise it does)
- Geting error in post and category [closed]
- How to display the post categories for each post inside the loop with custom format?
- How can I pass form entry to another form on a new page
- How to sort WP_Post Object array by object field in php?
- Posts are not displaying on their category and tag page
- How can I create a Survey Form in WordPress that users can fill in and then submit the entire survey contents as a post?
- WP Ajax returning 0, can’t find action
- Taxonomy checkboxes not showing current status on edit page
- Sorting post by custom field and category
- show image gallery in archives or category page
- Page with Category Returning 1
- Secretly passing post ID/title etc into a shortcode form automatically to link submission to post
- Get posts from category from custom query
- Creating a frontend blog post form for logged in users only
- Customizing URL slugs of Custom Post Type and Taxonomy make posts/pages 404
- Ajax the create and edit post form into lightbox and get results
- wordpress display posts by terms id or name
- How to sort posts in admin by name
- Page 2 has no posts?
- Custom Taxonomy From Database
- Disable archiving of old posts?
- Sort / Filter Queries
- Changing a field value on submit using a PHP variable
- How can add posts without category into category
- How to organise post by category and date
- Sort Posts Alphabetically by Multiple Categories [duplicate]
- User driven content problems
- How do I display the next 3 posts in the sidebar?
- How do I insert a custom field in a user submitted post?
- retrieve post slug by post_tags taxonomy
- Get Video Attachment to post
- Show all posts in category
- Taxonomy Category category.php not working
- Add author section on Author archive posts
- How can I add a custom caclulation form in post?
- Display post count on archive page in reverse order