within a category you can use get_queried_object()
to get data on the current category.
$current_category = get_queried_object();
$args = array( 'categories' => $current_category->term_id );
$tags = get_category_tags( $args );
within a category you can use get_queried_object()
to get data on the current category.
$current_category = get_queried_object();
$args = array( 'categories' => $current_category->term_id );
$tags = get_category_tags( $args );