WordPress.org

Ready to get started?Download WordPress

Forums

wp_tag_cloud - exclude argument not working (4 posts)

  1. nicosFR
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to display a tag cloud with a tag being exluded.

    Here is my code
    <?php wp_tag_cloud( array('exclude' => 'Une') ); ?>

    The tagcloud is displayed, but the tag specified isn't excluded.

    Any idea why ?

  2. keesiemeijer
    moderator
    Posted 2 years ago #

    Try it with the tag "slug", probably "une"

  3. nicosFR
    Member
    Posted 2 years ago #

    doesn't help...

  4. keesiemeijer
    moderator
    Posted 2 years ago #

    Just reading this: http://wordpress.org/support/topic/wp_tag_cloud-ingnores-exclude-parameter?replies=9

    The include and exclude parameters should only take ID numbers of the entries in the taxonomy table (comma separated), not slugs or names or anything else

    Try it with the tag ID

Topic Closed

This topic has been closed to new replies.

About this Topic