I'm trying to list the post's tags without success. Anyone know what can be happening here? The code just stops there, last line loading is the tag. I've tried it with foreach, for, and implode, within an if statement and also without.
<?php
$tags = get_tags();
if( count( $tags) > 0) {
echo '<div id="etiquetas">';
echo '<ul class"tags">';
foreach($tags as $tag){
echo "<li>". $tag ."</li>";
}
echo '</ul>';
echo '</div>';
}
?>