Title: Wnat to display only certain tags in a cloud
Last modified: May 13, 2022

---

# Wnat to display only certain tags in a cloud

 *  [matthew.leavitt](https://wordpress.org/support/users/matthewleavitt/)
 * (@matthewleavitt)
 * [4 years ago](https://wordpress.org/support/topic/display-only-certain-tags/)
 * Hello WP Community,
 * I am trying to do something that in my head should be simple, but not seeing 
   options within the plugins / widgets I have.
 * I have a variety of tags that are sort of different categories, so when displaying
   a tag cloud, i’d like to select which ones I display. For example, I have Rating,
   Theme, States that are all blended, and just want to select a list of tags to
   display.
 * Not seeing a plugin or easy option to add/remove certain tags from a cloud.
 * Any help would be appreciated!
    -  This topic was modified 4 years ago by [matthew.leavitt](https://wordpress.org/support/users/matthewleavitt/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdisplay-only-certain-tags%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/display-only-certain-tags/#post-15644161)
 * The solution depends on how the cloud is generated. It’s sometimes possible to
   alter the args passed to the function to get the results you want. If `get_terms()`
   or `WP_Term_Query` are used to get the tags, the ‘pre_get_terms’ action can be
   used to alter the query vars used. Setting an “include” or “exclude” query var
   will let you specify which tags will appear in the cloud. Or set and unset other
   query vars to get the query results you want.
 * The main problem with this action hook is all term queries go through it. You’ll
   need to discern a tag cloud query from any others. The nature of other query 
   vars can help with this.
    [https://developer.wordpress.org/reference/hooks/pre_get_terms/](https://developer.wordpress.org/reference/hooks/pre_get_terms/)
   [https://developer.wordpress.org/reference/classes/wp_term_query/__construct/](https://developer.wordpress.org/reference/classes/wp_term_query/__construct/)

Viewing 1 replies (of 1 total)

The topic ‘Wnat to display only certain tags in a cloud’ is closed to new replies.

## Tags

 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [3 years, 12 months ago](https://wordpress.org/support/topic/display-only-certain-tags/#post-15644161)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
