How to get custom post sub category link?
I need to get an echo of custom post sub category link. I can’t figure it out. This is what I do have. Here under taxonomy is default custom post category. All new that someone creates are sub category under this one.
$cpt_query = new WP_Query( array(
‘post_type’ => array(
‘tax_query’ => array(
‘relation’ => ‘AND’,
‘taxonomy’ => ‘fixs_cat’,
‘field’ => ‘slug’,
‘terms’ => $fix_cat1 ,
‘include_children’ => true,
‘operator’ => ‘IN’
) ); ?>
Now if i go with foreach i will get all sub categories and it works fine, but this is not what i need. Under terms a variable $fix_cat1 displays under tab1 posts from any category. Now at the end i need to add view more links from this category. Any ideas how to do it?
Sorry for late, You can try this way https://developer.WordPress.org/reference/functions/get_term_link/