Answers for "get current term url"

PHP
2

wp get term link

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

wordpress get current taxonomy

$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
echo $term->name; // will show the name
echo $term->slug; // will show the slug
Posted by: Guest on October-21-2020

Browse Popular Code Answers by Language