Create tag cloud by category id / get tags by category id

The first function gets all tags that are currently in use by a specified category.

The second function outputs a tag cloud (like wp_tag_cloud) based on a specified category.

To use, simply place both functions inside of functions.php.

To output the tag cloud simply use:

You can also gather up all tags in use by a category for whatever else you need like so:

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!