This isn’t a WordPress question, its more suitable for StackOverflow.
Regardless, your looking for a chained menu. I’ve seen this tutorial around a lot, hope it helps.
Related Posts:
- How to add a custom field in the advanced menu properties?
- Adding a custom field to the site identity menu
- Add meta data to the menu
- Create a select drop down of available menus
- Creating a custom menu/widget area
- Nav Menu – Add class based on meta keys
- Add image to menu item with ACF
- Declaring in variables [closed]
- How to add a custom field in the advanced menu properties?
- Walker class for sub-menu with ACF fields
- Populate wordpress menu with link to custom field value (file download)
- Show Custom field value instead of title in WP Menu
- How to make menu country specific?
- How to check custom fields from functions.php
- Override edit_custom_walker.php to conditionally show input depending on menu position
- How to use page metadata while using wp_list_pages()?
- Add custom fields to specific menus
- Add CSS class to posts with certain meta key
- Uploading PDF using Media Uploader
- Why orderbyb meta_value_num won’t affect the generated SQL Query order?
- I need a “Choose from existing content” popin
- For homepage images (for small business website), is it better to use custom fields or post_thumbnail?
- Sorting editor screen items
- get post id using custom filed value
- How Do I Display A Custom Field In The Sidebar Of All My Pages?
- Query_posts with custom field meta value
- Passing meta_box string to post__in?
- Can data from a Custom Field data be used by a shortcode on a per page/post basis?
- How can I modify RSS item titles to be either the title or a custom meta field?
- Avoiding ACF get_field and returning to core WordPress function
- Display custom field value part by part?
- Custom Field – Do Not Show if Value is Empty?
- Move Title and the Content WYSIWYG editor position
- WordPress built in custom fields don’t validate or sanitize? Is there a way to fix this?
- How can I hide custom field from users used for caching response from external api?
- How do i get the attached images with custom value checked?
- How to disable Edit Post and Allow only Custom Field?
- wp custom field date format compare
- frontend submit post jQuery clone row won’t save
- WordPress colorpicker save both hex and RGB
- Cannot save underscore custom fields in one wordpress installation using xmlrpc and underscores
- Can’t get video meta from wp_read_video_metadata()
- Best way to contruct a global custom field?
- Diamond question mark in text after migrating content
- Include one custom field in search results
- Display posts with empty custom field
- Custom search SQL Query to add custom field in result
- How to write specific HTML code with a specific custom field? [closed]
- How to style posts selecting a CSS post_class (added through custom_fields?)?
- Custom Fields Question
- Can wp_insert_post_data filter be used to save custom field data?
- Meta query relation ‘OR’ not working as expected
- How to hide custom fields added by a plugin?
- Add custom data (field) to sidebar widgets for later display
- How do I convert all custom_field php timestamps in the database to js timestamps?
- Add Custom Fields After Page Title
- Footnotes in custom fields
- Image upload and path to custom field
- Create a new custom field for all posts based on current custom field
- Display custom field value as a mailto: link
- Display custom field only if it has a value
- Make separate text boxes for separate WordPress Custom Fields
- Need to search a custom field (ingredients, one long string per post), but want it to allow phrases/non-exact matches
- Listing posts with a value in a custom field
- Using Customizer API vs Custom Meta Box for custom content
- Sort by an ACF field in a tax_query
- Filtering posts by ACF meta query
- How do I display an article using a WordPress custom field?
- Custom field metabox not showing in back-end
- WordPress admin area: select box with 12.000+ options
- Custom meta boxes – add php code inside?
- to create a custom post type with additionnal url field such as link to social network and an email field
- Load one page with parent and child pages
- Why can’t I get the correct post permalink
- User custom meta delete by serialised key value
- Metabox value for post loop?
- Query Multiple meta
- Using ACF Custom Field value in a URL with do_shortcode() [closed]
- Ordering posts by custom fields
- Custom Post Field -> Returning only the word “array”
- Register author, facebook connect, publish posts from front end
- Custom field and category query
- Empty the_content for all posts
- Display different category template if custom field is checked
- How can I create more “create attachment” custom field – any idea?
- Show message if statement is false – foreach
- Order by custom field in query multiple
- Returning website screenshot based on Custom Field
- How to show custom field and parent post id in wordpress attachment page (image.php)
- Echo text if field under user_meta is empty with get_users()
- Filtering posts by WORD in custom field
- How to organise via Custom Fields on Category Page
- Display agents (custom post type) alphabetically, except one who always shows last
- Custom Search, MySql Query Gone Wrong?
- Cannot Hide Google Map if custom field is blank
- Display custom field value into content with hyperlink
- Send checkout page custom field in order email
- Set new url from custom post field
- acf field repeater link don’t work
- Set post status to draft after validating post meta values in save_post hook