Hello Everyone out there, who are facing difficulty to display the parent and child taxonomies in drop down, i found the solution for the above problem……
edit the code in the functions.php file,
before the code was
$categories= get_categories('child_of=".$_POST["main_catid'].'hide_empty=0');
now edit the code, like this…
$categories= get_categories('child_of=".$_POST["main_catid'].'&hide_empty=0'.'&taxonomy=state');
and this works so beautifully, try it for sure……all i did was i concatenated the taxonomy, that’s all
cheers everyone, happy coding….. 🙂
Related Posts:
- Get parent and children taxonomy in different dropbox
- restrict_manage_posts not working in 3.3.1
- How to remove “Taxonomy name:” from wp_title
- Dropdown: Display terms from B only if has relationship with a term A selected
- Display a custom taxonomy as a dropdown on the edit posts page
- Help With issue on pre_get_posts filter in taxonomy
- Taxonomies not appearing in columns on dashboard
- Filtering more than one term in a taxonomy in WP
- How to display term description in empty terms archive?
- Save Filter for Taxonomies
- How to create drop down for child categories of current taxonomy being viewed?
- How to get a list of taxonomy terms which are being used only within certain post types?
- How to filter WordPress search, excluding post in some custom taxonomies?
- Search by type posts and taxonomy
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- Current category link filter
- How to determine the depth of a term in a custom taxonomy?
- How to adjust code to refresh a dropdown box with tags that are active on filtered category listing
- How Can I Change a Taxonomy URL Based On The Originating URL?
- Simple Filter between multiple taxonomys
- How to create a dependent drop-down and options in dropdown must be manageable from admin panel
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- Query posts from a child taxonomy term id
- Create custom taxonomy and Display in metabox dropdown
- Remove custom taxonomy column from my custom post type columns
- Using wp_dropdown_categories in widget options
- Query posts using custom taxonomy and selected terms
- Multiple Custom Taxonomy Dropdowns Lists
- Build filter for post-type + multi taxonomies + multi terms
- wp_dropdown_categories – how to save in widget?
- Advanced search redirecting to another page then filter further
- Filter By Category Dropdown List With Custom Taxonomies
- Display taxonomy with a maximum number of letters
- Search box with field hidden till drop down selection is made
- Drop-down filter doesn’t retrieve custom taxonomies
- Creating a drop-down and filter button for two custom taxonomies assigned to a custom post type
- Filter with two id of the same value CPT UI(taxanomies)
- Amend taxonomy to search in wordpress admin
- Include get_term_link inside search
- Keeping session instance of random display results over pagination breaks
- How to add a dynamic dropdown derived from custom taxonomy
- Custom field with terms from another taxonomy programmatically
- use apply_filters return taxonomies custom post type
- How to filter a page title with custom taxonomies
- Unregistered taxonomy apears still as emtpy filter list
- How to paginate with an query var appended to permalink?
- Sort Taxonomy List by Custom Values
- Dropdown switching subcategories portfolio
- ajax drop down change second drop down data
- Calling Custom Taxonomy Dropdown in Form
- Unable to display the post titles in a drop down
- Taxonomy to display form after creation
- Having trouble querying multiple custom taxonomies
- Change filter id into slug
- How to filter the terms of custom taxonomy by author id in admin panel
- Conditional if is single and part of the custom taxonomy
- Items from media library won’t get added to a custom taxonomy
- Custom taxonomy only gets saved in quick edit
- Taxonomies and subtaxonomies relations
- Tree view wp-admin terms
- Retrieve the child terms by having the parent’s information
- Fill New Taxonomies
- Gutenberg Block Editor – Create block with dynamic content
- How can I rewrite the URL of my custom taxonomy to include the year?
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- Store a value in global scope after init hook is fired
- Infinite Scroll appending Next Product Category Term pages
- add pagination in wordpress page template
- How do I get the correct URL?
- Random order not working correctly when using default loop + $query->set
- Convert post meta to custom taxonomy?
- Custom Taxonomy archive.php template naming not working
- How to create filter’s for custom taxonomy page
- Get custom taxonomy terms that contain posts that have another taxonomy term
- Remove custom taxonomy slug from URL
- Filter in Custom post type to find the parent post
- How to exclude woocommerece product category in search results?
- Order get_terms by count using a custom taxonomy hierarchy
- Group posts in a category based on tags in custom taxonomy
- How to add chained dropdown filter to a wordpress website
- Connect ACF field + custom taxonomy [closed]
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- Listing Cities A custom taxonmy by selection order
- Cloning product not copying custom taxonomies
- How to get a taxonomy by a term slug?
- Custom taxonomy not showing in grid view for ‘attachment’ post type
- Add A CSS Class To A Menu Item When A Custom Taxonomy Term is Present On Single Post
- Check if any available product has specific attribute
- Template taxonomy-{taxonomy}.php doesn’t show my posts
- How to appear plural or singular custom taxonomy name(-s) inside woocommerce single product meta php file
- How to structure all custom-taxonomy with three verbs(a,b,c) and route them accordingly?
- Tax-query on taxonomy doesn´t work
- how do you pull data from two taxonomies?
- problem : Custom taxonomy template not showing
- How to create a non removable taxonomy term?
- Can I get thumbnail of taxonomy?
- How to loop custom posts that have an exact match in taxonomy terms?
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- How to exclude the common terms?