Home > AI > Backend > Wordpress >

term

get term slug

get_query_var('term');

get term id

get_queried_object()->term_id;

get term name

$term = get_term( $term_id, $taxonomy );
$slug = $term->slug;
$name = $term->name;
$desc = $term->description;

Leave a Reply