Answers for "get taxonomy term link"

PHP
2

wp get term link

$term_link = get_term_link($term);
Posted by: Guest on August-10-2020
0

get taxonomy term id from slug - WordPress

<?php 
    $term = get_term_by('slug', $slug, 'category'); 
    $name = $term->name; 
    $id = $term->term_id;
?>
Posted by: Guest on September-23-2021

Browse Popular Code Answers by Language