get_render_attribute_string( 'container' ) ); ?>>
get_settings_for_display();
$args = array(
'number' => $settings['terms_number'],
'orderby' => $settings['order_by'],
'order' => $settings['order'],
);
// Get the terms based on filter source.
if ( 'yes' === $settings['get_from_current'] ) {
$taxs = wp_get_post_terms( get_the_ID(), $term, $args );
} else {
$args = array_merge(
$args,
array(
'taxonomy' => $term,
)
);
$taxs = get_terms( $args );
}
if ( is_wp_error( $taxs ) ) {
return array();
}
return $taxs;
}
}