25 ноября 2019

WordPress вывести имя и ID термина таксономии текущей страницы или дочерней

$taxonomy_name = get_queried_object()->name; // Get the name of the taxonomy
$term_id = get_queried_object_id(); // Get the id of the taxonomy

Комментариев нет:

Отправить комментарий