I have bit of trouble understanding your question. Taxonomy (like category
) slug or term (like uncategorized
) slug?
get_term_children()
works with terms so I will stick with that.
Try this:
$term = get_term( $id, $taxonomy );
$slug = $term->slug;
Related Posts:
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- Get posts from taxonomy URL
- Simple Filter between multiple taxonomys
- Custom Taxonomy with tax_query
- How to get posts that contain multiple terms from multiple taxonomies?
- URL rewriting taxonomy term
- List one post only from each subcategory using get_posts?
- Orderby taxonomy term id using get_posts not working
- Get Posts by tag from a custom taxonomy
- WordPress taxonomy radio buttons
- Custom taxonomy, get_the_terms, listing in order of parent > child
- Inserting a term into a custom taxonomy
- Count posts in custom taxonomy
- Get taxonomy names by post id
- restrict_manage_posts not working in 3.3.1
- Custom taxonomy on users with UI
- Get main parent categories for a product
- Echo Custom Taxonomy Field Values Outside the Loop
- Taxonomy Relationships
- Restricting Users to view only Custom Taxonomies they have entered?
- How to display posts from a single category within a custom taxonomy
- Custom taxonomy parent from another taxonomy
- How to extract url from get_the_term_list?
- How to create drop down for child categories of current taxonomy being viewed?
- How to dynamically add custom taxonomy terms as a sub-menu of an existing menu item, using custom walker class
- Get terms ordered by post date
- custom post type, hide or disable the trash button in publish meta box
- Custom Taxonomy template not showing
- Display hierarchical subterms of custom taxonomy based on depth
- Date archive permalinks for custom taxonomy
- Custom Taxonomies Cababilities
- How to implement custom search with input fields?
- Custom taxonomy [year] is directing to yearly archive
- Alter post order on taxonomy template
- How can I hide admin columns showing extra custom taxonomy fields?
- Category slug field missing with registered custom taxonomy
- How to show the a custom taxonomy term on single post metadata
- Automatically Give All Custom Post Types a Pre-Set Category [duplicate]
- Sort order by slug for looped child terms of custom taxonomy
- How to separate posts in loop?
- Custom Taxonomy isn’t working from frontend post submitting
- Permalink help with default Posts and custom Taxonomy
- Base permalink for custom taxonomy
- put custom taxonomy slug in front of their respective term slugs
- Add success message to category add screen
- Prevent users from adding taxonomy terms
- Count Number of Posts in Taxonomy Term in Last 24 Hours
- Changing select options based on previous select with PHP & AJAX
- Problem with removing post tags programmatically
- Query custom taxonomy by term id?
- Headers already sent warning in Admin source is media.php 3140
- How can I reduce amount of ifs and else ifs in this specific block of code?
- Return the most recently created custom taxonomy
- {$taxonomy}_edit_form_fields not working
- Custom taxonomy link automatically removing query string and re-directing
- Get name of taxonomies of current page
- export and import taxonomy terms from one taxonomy to another
- Find terms in a custom taxonomy based on the hirearchy
- Geographic search with taxonomy structure [duplicate]
- WooCommerce custom taxonomy as meta?
- Query custom taxonomy for category including children
- SQL / wp_update_post: change post custom field to CPT post taxonomy
- Proper way to create taxonomy queries
- Get 1st parent category id from post
- Filter by Custom Taxonomy AND Custom Field
- Custom Permalink Structure for terms/taxonomies of custom post type
- register_taxonomy for both ‘Post’ & ‘Page’
- Display custom taxanomy on woocommere product page
- when custom taxonomy is empty, the page won’t load
- Search custom taxonomy via query-string?
- How to structure all custom-taxonomy with three verbs(a,b,c) and route them accordingly?
- how do you pull data from two taxonomies?
- problem : Custom taxonomy template not showing
- WordPress not saving tags for custom taxonomy term description
- How to Implement Custom Taxonomy Conditional Page?
- Display multiple taxonomies in a function
- Remove Custom metabox from particular page template is used
- Restrict user to terms in a custom taxonomy registered for both posts and users
- Add and Custom category for posts “PAGE”
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- WordPress search form and search result through ACF field in custom taxonomy
- Exporting Custom Taxonomy Description without Plugin
- How do I display post count of a custom post type with custom category taxonomy in wp_menu_nav?
- WordPress Main Menu with dynamic url
- wp_insert_post and custom taxonomy
- WordPress tag or archive php file customization
- Dynamic value for get_option linked to taxonomy term_id?
- Best Method to Switch Between Terms (Custom Taxonomy)
- Custom post type term names with ampersand in the term name
- If page is a taxonomy do X, if is a term, do Y
- Getting the parent terms adds additional empty markup [closed]
- How to query authors by custom taxonomy?
- Custom taxonomy list in two columns
- get multiple values from $_GET from multiple checkboxes
- Way to organize content – custom taxonomies or other way?
- Using post type archive page for taxonomy archive
- Custom Fields link to other pages, not search
- Taxonomy archive link from term id
- Two taxonomies with the same slug
- Hook function when taxonomy terms change