How to hide tag div for CPT when it's empty in wordpress

Wednesday, November 4, 2015

For posts I used the codes below to hide the tag div when it's empty:



<?php
if( get_the_tags() ){
echo '';
}
?>


But now I've got another custom post type named "team", but I have no idea how to hide the div if there's empty since the way it calls the tags is different from the way above...here's the codes I have now:



KEYWORDS:

0 comments:

Post a Comment