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
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- get_terms does not return any results for my custom taxonomy?
- Order terms by term_order
- How do you remove a Category-style (hierarchical) taxonomy metabox?
- get_terms() doesn’t return empty terms even though hide_empty is false
- You are not allowed to manage these items – bug introduced in 4.4
- Custom metabox for menu administration page?
- Remove Custom Taxonomy Base
- wp query with multiple taxonomy?
- Is there a way of storing posts and pages under the same hierarchy?
- Display Custom Taxonomy Terns ordered by meta_value
- Display custom taxonomy for product
- Automatically assign taxonomy term if custom meta value exists
- Function to limit the number of posts in taxonomy.php
- WP Query with custom taxonomy
- How To Capitalize Entries In the Taxonomy Box?
- Custom taxonomies making WP very slow – Way to fix?
- Show only 1 term of a current posts taxonomy
- Custom user taxonomies fail when i register multiple taxonomies
- Top level parent taxonomy ID
- Autogenerate Front End Form Field With jQuery
- Selecting all posts from the children of a particular parent taxonomy
- Display related products based on 2 specific product attributes values in WooCommerce
- How to get all taxonomies which can be added in menu?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- Select multiple categories from CPT to display in LayersWP builder widget
- limit post by a taxonomy in the admin
- WordPress Custom post query sorting does not work
- WordPress set taxonomy on post?
- Removing “trashed” posts from post count in custom taxonomy terms?
- Best way to redirect taxonomy terms to pages
- WordPress cannot find user taxonomies on frontend
- Taxonomy archive template that shows posts from more than one taxonomy
- Hide echo of no categories from get_object_taxonomies
- How Can I Remove Child Slug From Grandchild Slug When Using Duplicate Grandchild Slugs?
- How to filter and/or sort user taxonomy query inside custom user taxonomy archive page?
- Add custom taxonomy for post using cron job
- Custom column into custom taxonomy (img tag with slug-name as file name)
- ACF Custom field not showing in Timber Taxonomy page
- Displaying subcategories and then posts in taxonomy template
- How to show one post content in another post content which has same terms?
- How to set “manage categories” capabilities on a post type taxonomy but not on the general categories?
- Include attachments with a custom taxonomy in search
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Display term description on hover using get_the_term_list
- How to add a custom page template selector to a custom taxonomy?
- Best approach of implementing multi-select/checkboxes for taxonomies?