WordPress.org

Ready to get started?Download WordPress

Forums

Add before and after tag cloud (1 post)

  1. Carolina Kadix
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Carolina Kadix
  • This topic is not resolved
  • WordPress version: 3.1.1

Tags