$terms = get_terms( ['taxonomy' => 'some-taxonomy', 'parent' => 123 ] );
// or
$categories = get_categories( [ 'parent' => 123 ] );
Where the parent id is the one you want to get the subcategory from. This gives you all subcategories/-terms in an array. You can access data like name or term_id. For getting the link you can use get_category_link or get_term_link.
Related Posts:
- Category links suddenly started giving 404 errors
- Any way to assign Post Categories and Tags to Links?
- Is it possible to select and edit the way the most recent post from a certain category is displayed on the page?
- How to enable category hierarchy for links?
- Combining post categories and link categories?
- Displaying a full post instead of a slug per category?
- Link Attachment Image to Category
- Class active for Archive link – looped out
- Why do my categories redirect?
- Get category url in loop
- Older entries link within category page
- Style category link depending on category ID
- Get paged category link programmatically
- Link To Child Category For A Post
- How to not display a category post on blog page?
- Link from navbar to categories
- javascripts files not linking to my category slugs?
- wp_insert_link not working
- How to list posts from a sub-category that is listed in a parent category (more details below)?
- Link For Portfolio Categories
- How to get the link of all categories
- Featured image for links and categories
- Categories as selectable links on submission form
- Displaying categories and subcategories without link
- How to get category slug link? ( include parent categories)
- How would I get a taxonomy/category list inside a Gutenberg block?
- Gutenberg editor add a custom category as wrapper for custom blocks
- Rewrite rule page url with category
- WP_Query not looking at child category
- Deleting default category in wordpress
- Excluding posts from a category but only if they’re not in multiple categories
- Most recent post from every category/taxonomy but sorted by date
- Category Archive, list subcategories of each post
- Showing all the posts in one page?
- How to order categories in Woocommerce that are spread over multiple pages? [closed]
- Script to duplicate categories as tags
- Check if post belongs to any category
- How to sort categories by id in wordpress admin
- How to override Category rendering mechanism
- Can paginate_links() be customized for a specific category or tag?
- Remove Parent Category from Child Category URL
- How to set up Author archives with sub category URL
- Allow users to post to a certain category
- How to change number of items on add new pluggins page from backend?
- Do I have to use categories?
- get_the_category and echo out link to child-most/deepest category
- Categorising posts/pages into years published
- How can I duplicate categories and tags?
- Display category description instead of “nothing found” page
- Subcategories with the same name
- Modify WordPress SQL Query to pull from within a category
- Removing post category base giving Error 404
- posts_nav_link(); picks up index.php instead of category.php as template
- Category name field strips HTML tags. How can I reverse this?
- Get all media categories
- Does “show_option_all” in wp_list_categories do anything?
- redirecting from a general category page to another specific one
- Show matching categories in search page
- Categories are not listing their respective products
- Pagination on category.php and tag.php not working
- How to do paging in the loop?
- query_posts not reading correct categories
- Displaying list of subcategories and not parent category
- How do I attach a page to a category similar to how we attach media to a post?
- how to nest specific category thumbnails inside different containers
- Eliminate word from $term->name
- Is there any way to check which wordpress categories was created by which user?
- Adding a block with query in homepage
- multiple values in an array for category__and does not work with WP_Query
- Category view with contents of [gallery]s shown
- How can I include custom category and tag base in template files?
- query_post problem
- Get a list of all links on a page?
- Add properties to term object
- Display all Categories
- custom wp_list_categories in single.php
- How to target all woocommerce categories that don’t have any subcategories in them?
- Is this process OK to replace URL structure?
- How can i echo next and previous custom category from a Taxonomy
- how to give different template to each subcategory from same parent category?
- No hierarchy in wp_list_categories with child of and depth
- How to check a category checkbox using JavaScript
- Pagination does not work with query_posts()
- Default URL for category dropdown select option
- Media Library Categories
- Custom file with special code of category widget
- Custom field picture instead of post thumbnail on category page
- Using categories and pages in menus
- A simple question regarding tags and categories
- Gettind 404 not found wen click the view button for a given category custom post type portfolio
- Custom category for posts via XMLRPC
- list first post of Child Category on Category page
- Archives and category of authors
- Detecting top parent category fails on home page
- Indenting Category list
- Show thumbnails 1-12 of category x on any given page
- How to create a template for categories
- Categories not shown on sidebar
- How to delete categories in WordPress
- How to get all Existing Categories from a Custom Post Type