How do I hide tags that have only been used once?

The filter term_links-post_tag passes …

'<a href="' . $link . '" rel="tag">' . $term->name . '</a>'

… as its only argument. You could extract the term name, count the associated posts and return an empty string if there is only one post. the_tags() will not print it then.

Very hackish, maybe someone else will find a better solution.

Leave a Comment