With a combination of jQuery / JavaScript and WP AJAX; you could look for an onchange event on the select box, send an ajax request to your admin-ajax.php with the year and then do a custom WP Query to return the html for the secondary drop down and append it to your dom.
https://codex.wordpress.org/Plugin_API/Action_Reference/wp_ajax_%28action%29
http://api.jquery.com/jquery.ajax
Once it is appending you can target your new select box with an onchange event as well.
Related Posts:
- Custom post status not working
- Get custom post type by category in a page template
- Append taxonomy terms as class names in markup?
- How do you output custom code between posts in the loop?
- Weird problem happening with custom taxonmy when creating/updating posts
- How to customize a permalink (URL) structure?
- Different Category system needed for the Custom Post Type
- Creating a non-hierarchical Taxonomy that behaves like categories
- post_content is stripping HTML when adding a new post? [closed]
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Foreach loop returning more than one item when querying taxonomy
- Function to erase every post from a taxonomy
- How do I ensure that post_type and Taxonomy use the same slug?
- set object terms after some some time of published post – functions.php
- update custom taxonomy custom fields
- Check that a slug is present in the get_terms request
- Assigning categories to custom post types via a front-end form; only works for native post type
- Change Search display for Custom Post Type
- Stored meta from attachment, video length?
- WordPress query posts by custom post type not workng
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Custom Loop for custom post type. Compare by meta_value?
- Inserting two categories
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- Get Custom Taxonomy ID within loop
- clients list using wordpress
- Associating an “author” with a custom taxonomy
- TV Show database – Best way for structuring it?
- How can I add dropdown widget/box to admin post page?
- Categories under custom post types doesn’t show properly
- Query posts by custom post type and custom taxonomy
- How to get only one category of custom post type?
- Error after deleting Custom Post Type with a function (no trash used)
- After deleting a post are terms, and custom meta deleted?
- Why is my custom loop not filtering correctly nor paginating?
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- How to customize admin posts based on the user who is logged in
- Show Two custom Post type and their posts on category page
- GravityForm: Populate Dropdown with custom post type [closed]
- Custom Post Types relationships
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Insert HTML inside link in a walker
- Remove standard meta boxes from custom taxonomy
- What’s the difference between same wp functions get_posts(); functions in different form?
- Received nothing after executing AJAX post function
- Can I list a custom post type within another custom post type in the admin area?
- List custom taxonomy specific to one custom post type
- Set URL link to featured image of custom post type
- AJAX load more for different custom post type loops
- On update or create post redirect to current post position in list
- I need to add endpoint for wordpress categories
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Hide parent categories when clicked, and show it’s childs
- Categorize custom post type
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Cannot save CPT meta box
- categories should be available across all custom post types
- Get term name without a foreach loop
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- custom post for slider
- List Categories (wp_terms) and count posts
- Get custom post type categories to show up in menus
- Show current custom taxonomy
- How exclude or skip post type with get_next_post_link
- Is it possible to use array_walk() to append terms to an array of posts?
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Template code to split a post and print a custom field?
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Post visibility option to theme front-end for author to select?
- How to list posts by term (custom taxonomy)
- Custom taxonomy not saving correctly
- Post type Echo code is repeating on homepage
- Related “custom post type” using “custom taxonomy”
- Custom post type page with parameter
- How do I disable the built-in editor and automatically configure the properties of new pages?
- How to have multiple search result pages in wordpress with taxonomy terms listed
- php dynamic content inside shortcode
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Title and URL Error in Breadcrumb Navigation for Custom Post Types
- How to limit the number of custom posts certain users can publish in WordPress using php script?
- pagination problem listing custom post types of taxonomy in wordpress
- Set a Default CPT taxonomy by taxonomy id
- Show parent category and subcategory once in while loop
- Building Link List for Custom Tax
- The most recent post of custom taxonomy
- Show tags of custom post types in WordPress
- can’t see categories in appearance-menu-categories
- Values inside a custom field to determine which category posts to display
- Show Custom Post Type taxonomy term that matches custom field
- Select Menu for Custom post Type does not save
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- Advise on Custom Taxonomies and Structure
- Comments are not working on Custom Post Type
- cannot export data from CPT UI (books)
- how to display custom taxonomies in front page
- WordPress different custom tag being displayed in on tag list
- How to use wp_set_object_terms depending on page ID?
- How to display *block number* instead *date value* on WordPress posts?
- How to develop Knowledge center in WordPress Website