-
-
Save Roy-Oto/ab8842f23393822529e380a3040b9983 to your computer and use it in GitHub Desktop.
To display Term in Custom Field Suite.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$values = CFS()->get( 'field_terms' ); | |
foreach ( $values as $term_id ) { | |
$the_term = get_term($term_id); | |
echo $the_term->name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment