gistfile1.phtml
$interests = get_resume_field( ‘careers_interest’ );
if ( ! empty( $interests ) ) {
if ( is_array( $interests ) ) {
foreach ( $interests as $selected_value ) {
$tax = get_term_by( ‘id’, (int) $selected_value, ‘careers_interest’ );
echo “
“;
}
} else {
$single_term = get_term_by( ‘id’, (int) $interests, ‘careers_interest’ );
echo “
“;
}
}
gistfile1.phtml
$interests = get_resume_field( 'careers_interest' );
if ( ! empty( $interests ) ) {
if ( is_array( $interests ) ) {
foreach ( $interests as $selected_value ) {
$tax = get_term_by( 'id', (int) $selected_value, 'careers_interest' );
echo "<li>" . $tax->name . "</li>";
}
} else {
$single_term = get_term_by( 'id', (int) $interests, 'careers_interest' );
echo "<li>" . $single_term->name . "</li>";
}
}
No comments yet.