Display only first level children of my custom taxonomy (ok)

https://wordpress.stackexchange.com/questions/135936/display-only-first-level-children-of-my-custom-taxonomy-categories

C:\xampp\htdocs\injagroup\wp-content\themes\houzez-child\template-parts\common-label.php

$queried_object = get_queried_object();
$term_id = $queried_object->term_id;
$termchildren = get_terms( $taxonomy_name, array( 'parent' => $term_id, 'hide_empty' => false ) );
echo '<pre>';
  var_export($termchildren);
echo '</pre>';

Last updated