How to add Text before my Custom Term and hide it when empty
Basically, you just need to check if the $links variable is not empty and if so, then echo the text Tag: and the $links (i.e. the terms list): if ( ! empty( $links ) ) { echo ‘Tags: ‘ . implode( ‘, ’, $links ); } Or a better version, check if the $terms is not … Read more