WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] list current custom tax as hyperlink

[Resolved] list current custom tax as hyperlink

  • 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 ‘[Resolved] list current custom tax as hyperlink’ is closed to new replies.
Skip to toolbar