WordPress.org

Forums

Removing a Specific Tag From Tag Cloud (3 posts)

  1. sociallys
    Member
    Posted 6 years ago #

    Hello,

    Does someone know a simple way to exclude a certain tag (one tha I choose) from my tag cloud widget? Thank you.

    :)

  2. lilqhgal
    Member
    Posted 6 years ago #

    I've been searching for something to do this for 2 days. I've looked at a lot of tag plugins and can't seem to find it. It seems easy to do if you use the tags code in your template file, but not if you use the widget. Anyone have any options for the widget? Thanks!

  3. dtwilliamson
    Member
    Posted 6 years ago #

    To exclude specific tags, edit wp-includes/widgets.php using information found at:

    wp_tag_cloud

    basically, you want this:

    wp_tag_cloud('exclude=13,21');

    would exclude tag numbers 13 and 21. You can find the tag id number by going to the tags page in your admin and hovering over the tag you're interested in. You can see the number in the status bar of your browser. Or on that same screen, click on the tag to edit it and the number will be in your browser's URL/address bar.

Topic Closed

This topic has been closed to new replies.

About this Topic