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
- Get Posts Under Custom Taxonomy
- How to Change Order of Posts in Admin?
- Difference between an archive and a page listing posts
- Random sort within an already sorted query
- Setting Custom Sort Order of Posts within a Category
- has_archive=false on the default post type
- Displaying the category name of a custom post type
- Clear cache when a post is submitted [closed]
- Elegant way to include only published posts with get_objects_in_term()?
- Can I force a metabox to be in one column?
- Show WordPress Custom Taxonomy Items Based On a Selected Item From Another Custom Taxonomy
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- How to Group Posts by the First Letter or Number?
- How to Arrange Posts by Size in the WordPress Dashboard?
- How are terms connected with posts in database?
- blog posts sorting doesnt work while using get_query_var
- How to sort posts by last name (2nd word) on ONE category only?
- Group Posts by First Letter of Title
- Create an “All Posts” or “Archives” Page with WordPress 3.0?
- Post Format Archive template name for theme folder?
- How to display comments and comment form on custom post type?
- Convert IPTC keywords to blog post tags
- widget should display post archive by year and on click also by month
- I am trying to create a simple frontend form for posting
- Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
- Must permalinks always point to single post pages?
- At my posts archive page, outside the loop, get_the_id() returns the top most post’s ID
- Importing data from spreadsheet into wordpress DB, along with custom taxonomies and their terms
- Display most recent post in category instead of archive?
- Sort wp post title with alphabetically and numerically?
- Single.php Active Category Class
- Exclude posts with specific meta_value while sorting by a separate meta_value
- 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)
- POST from jQuery to PHP
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- Plugin for sortable posts in grid [closed]
- get_post_type_archive_link(‘post’) returns current category archive
- get_terms parent for current product only
- deleting terms programmatically
- Phantom 302 status code when sending a POST requests on pages
- Adding Multiple Values to a Post Meta Key
- How do I get the slug of a custom taxonomy category of a post?
- How to get the latest posting time of archived pages in WordPress?
- How to display sorted posts in the ‘All Posts’ page
- Post taxonomy from exif data
- Redirection to taxonomy posts list after post submit.
- Remove custom posts that match taxonomy value
- Using Custom Posts with Metaboxes and Drop-downs
- Sort posts by newest child while keeping hierarchy intact
- How to automate filing a form as a user
- Does an action fire when adding a tag via the “Tags” meta box?
- Filter Posts by Excluding Categories
- change default post archive page link
- Sorting posts alphabetical that have single digits
- 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
- Display posts from #6 to #20 on archive page
- Server-side sorting of posts
- Category List (Archive) Page Template By Category
- Getting category posts from a certain year
- Ajax posts filter by date, comments, top views, top likes
- Yearly archive page for future year
- Avoid duplicate post from same Taxonomy
- Automatically Updating Publish Date Bug
- Which URL to enter into browser to show all posts in archive.php?
- Get posts by name and taxonomy term
- Guest Author – How to display posts on /author/ archive page
- Set terms in a custom post
- Get posts of ONE taxonomy term of custom post type
- 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?
- Choose whether to automatically add a taxonomy with the same name as the post
- Display tag image in post using Taxonomy Images plugin index.php
- wp_get_object_terms returns only Uncategorized on first publish
- Setting posts_per_page for taxonomy term template
- How to build a site with a map that shows where people offer and need help?
- Archiving by academic year instead of calendar year
- How to bulk-untag multiple posts?
- Force the “Choose from the most used tags” meta box section to always be expanded
- CF7 upload file failing [closed]
- Posts list in custom taxonomy
- List category posts alphabetically on archive.php
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- How to convert contact form 7 submission to post after submission? [closed]
- How to sort posts inside categories
- Get Posts Under Custom Taxonomy
- Prepending %category% onto default posts fails
- get_adjacent_post by language