Answers for "get term name by id"

PHP
0

get term name from term id

$term_name = get_term( $term_id )->name;
Posted by: Guest on June-19-2021
0

get term id

get_queried_object()->term_id;
Posted by: Guest on June-29-2020

Browse Popular Code Answers by Language