Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

familias y marcas

// WP_Term_Query arguments
$args = array(
	'taxonomy'               => array( 'familia', 'marca' ),
	'hierarchical'           => true,
	'childless'              => true,
	'fields'                 => 'id=>name',
	'hide_empty'             => false,
);

// The Term Query
$taxys = new WP_Term_Query( $args );

// The Loop
if ( ! empty( $taxys ) && ! is_wp_error( $taxys ) ) {
	// do something
} else {
	// no terms found
}