Title: Shortcode
Last modified: August 22, 2016

---

# Shortcode

 *  Resolved [slimyslug](https://wordpress.org/support/users/slimyslug/)
 * (@slimyslug)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shortcode-255/)
 * Hi there, I’m getting a bit stuck – I’m a noob.
 * I have a category called “Guidelines” with about 20 children, and I’d like a 
   tag cloud on a page.
 * [showtagcloud taxonomy=”category”, category_id=”Guidelines”, format=”array”, 
   child_categories=”1″]
 * But the results are not what I expect [http://www.nasgp.org.uk/clinical-guidelines/](http://www.nasgp.org.uk/clinical-guidelines/)
 * Any suggestions?
 * [https://wordpress.org/plugins/wp-category-tag-could/](https://wordpress.org/plugins/wp-category-tag-could/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [benohead](https://wordpress.org/support/users/benohead/)
 * (@benohead)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shortcode-255/#post-5781000)
 * The problem is that “Guidelines” is not the category ID but the category name.
   What you need is the numeric ID for the category.
 * If you go to the your Dashboard, select Posts>Categories on the left hand side
   and then select Guidelines in the list, it will open the category editor. The
   url should be similar to: [http://www.nasgp.org.uk/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=458&post_type=post](http://www.nasgp.org.uk/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=458&post_type=post)
 * This shows you the category ID (458 in my example). The attribute is called “
   tag_ID” but it’s the ID of the category.
 * If your ID is 458, the shortcode should be: [showtagcloud taxonomy=”category”,
   category_id=”458″, format=”array”, child_categories=”1″]
 *  Thread Starter [slimyslug](https://wordpress.org/support/users/slimyslug/)
 * (@slimyslug)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shortcode-255/#post-5781056)
 * Thanks so much for your prompt support.
 * OK, I’ve replaced the shortcode with [showtagcloud taxonomy=”category”, category_id
   =”511″, format=”array”, child_categories=”1″]
 * (511 being the category_id)
 * But it seems to make no difference.
 * That category is itself a child – does that matter? It also has only 6 posts 
   at the moment. I’ve tried replacing “511” with “80” (another top level post category),
   but that didn’t work either.
 * NB this category is a category (not tag) for ‘posts’, not pages.
 * Any ideas?!
 *  Plugin Author [benohead](https://wordpress.org/support/users/benohead/)
 * (@benohead)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shortcode-255/#post-5781068)
 * Ok, one issue is that the example I had given on the Plugin FAQ is wrong. Shortcode
   arguments are separated by spaces, not commas…
 * So the shortcode should actually be:
 * [showtagcloud taxonomy=”category” category_id=”511″ format=”array” child_categories
   =”1″]
 * Can you please give it a try ? I’m also preparing an update of the plugin since
   I’ve found some paths in the code where there could be problems but I am not 
   too sure whether it can really happen in the practice. The new version will be
   available soon but it’d be great if you could adapt the shortcode and check the
   results with the current version.
 *  Thread Starter [slimyslug](https://wordpress.org/support/users/slimyslug/)
 * (@slimyslug)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shortcode-255/#post-5781085)
 * You star!!! Yes, that does the trick. Thanks so much, and for a great plugin 
   too.
 * (BTW there’s a typo in your FAQ
 * “Let’s assume this is the shortcode which was generated:
 *  [showtagcloud taxomony=”category”, format=”array”, number=”20″, color=”#FF5800″,
   background=”FFFFFF”]”
 * Should be [showtagcloud ***taxonomy***=”category”, format=”array”, number=”20″,
   color=”#FF5800″, background=”FFFFFF”]”
 * Richard
 *  Plugin Author [benohead](https://wordpress.org/support/users/benohead/)
 * (@benohead)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shortcode-255/#post-5781088)
 * great! I’ll update the FAQ in the next update.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-category-tag-could.svg)
 * [WP Category Tag Cloud](https://wordpress.org/plugins/wp-category-tag-could/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-category-tag-could/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-category-tag-could/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-category-tag-could/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-category-tag-could/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-category-tag-could/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [benohead](https://wordpress.org/support/users/benohead/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/shortcode-255/#post-5781088)
 * Status: resolved