Support » Themes and Templates » Add before and after tag cloud

  • need to put <span> tag </span> in my tag cloud
    something similar to the separator as the code below
    tag | tag

    <?php $tag_cloud=wp_tag_cloud(‘smallest=8&largest=18&format=array’);
    foreach($tag_cloud as $tags) :
    echo $tags.’ | ‘;
    endforeach; ?>

    I tried to do so down but it did not work
    <?php // TAGS
    <?php $tag_cloud=wp_tag_cloud(‘smallest=10&largest=20&format=array’);
    foreach($tag_cloud as $tags) :
    echo ‘<span>’$tags.’ </span>’;
    endforeach; ?>

    any ideas?

  • The topic ‘Add before and after tag cloud’ is closed to new replies.