$args = array(
'orderby' => 'name',
'parent' => ENTER_PARENT_CAT_ID_HERE,
'taxonomy' => 'category',
'hide_empty' => 1 ,
'number' => '1'
);
$categories = get_categories( $args );
$content='';
foreach ( $categories as $category ) {
echo '<a href="' . get_category_link( $category->term_id ) . '">' . $category->name . '</a><br/>';
}
Enjoy Code! :) How to display children categories for a specific parent category : WordPress
Hello friends,
If you want to get the details of children categories for a specific parent category then use my code give below:


In this article, we’ll highlight the differences between Joomla’s
sections and categories. Most blog hosting platforms are free,
and you can save the monthly cost and effort into building and maintaining a website from scratch.