Support » Fixing WordPress » list current custom tax as hyperlink

  • Resolved gillispj

    (@gillispj)


    How do turn the listed term as a hyperlink to parent custom taxonomy? I am stuck!

    <?php
    	$terms = get_the_terms( $post->ID, 'program' ) ;
    	$term_list = array_pop($terms)->name ;
    	foreach( $terms as $os )
    	{
    		$term_list .= "<br> " . $os->name ;
    	}
    	echo $term_list ;
    ?>

    Thank you,
    JG

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘list current custom tax as hyperlink’ is closed to new replies.