function ashyana_getTaxonomyValues( $taxonomyName = "", $taxonomyChild = '', $parent = null ) {
if( !empty( $taxonomyName ) && taxonomy_exists( $taxonomyName ) ) {
if( !empty( $taxonomyChild ) ) {
$term_details = get_term_by( 'name', $taxonomyChild, $taxonomyName );
$terms = get_terms( $taxonomyName, ( $parent == 0 ) ?
array( 'parent'=>$term_details->term_id, 'hide_empty'=>0 ) :
array( 'fields' => 'all', 'hide_empty'=>0 ) );
return $terms;
}
else {
$terms = get_terms( $taxonomyName, ( $parent == 0 ) ?