Home › Forums › Back End › where does get_term_link() go to? WORDPRESS › Reply To: where does get_term_link() go to? WORDPRESS
Hi, Thanks, I have looked at the codex, everything seems fine to me…
Here is the main section of code from the custom page that links the custom taxonomy:
$args1 = array( 'taxonomy' => 'representedartist', // Registered tax name 'hide_empty' => false ); ?>
<?php $artists = get_terms( 'representedartist', $args1 ); ?>
<?php foreach ($artists as $artist) { ?>
<section class="artist">
<?php $artistName = $artist->name;
$artistID = $artist->term_id; ?>
<?php $term_link = get_term_link($artist); echo $term_link;?>
<a class="nostyle" href="<?php echo $term_link; ?>"><h2 class="artistName"><?php echo $artistName; ?></h2></a>
<img src="<?php echo z_taxonomy_image_url($artist->term_id); ?>" width="400px" />
<p class="artistBio"><?php echo $artist->description; ?></p>