Title: Create shortcode with custom parameters
Last modified: March 4, 2019

---

# Create shortcode with custom parameters

 *  Resolved [nggum](https://wordpress.org/support/users/nggum/)
 * (@nggum)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/)
 * Hi,
    I’m pretty noob to web design so bear with me. I learned how to put this
   plugin on a page, I simply put [cool_tag_cloud] and it shows up as expected but
   how do I set the custom parameters with the shortcode?
 * I see that you put a “Here’s the list of all available parameters for the shortcode:”
   with the parameters below but how do I actually use it?
 * I guess what I’m looking for is an example that I can cut and paste to my page
   and then edit the parameters to my liking.
 * Thank you!

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

 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11271743)
 * Hi,
 * You can basically copy/paste a parameter in there and just leave the value you
   need ( the values in there are separated by the | character ). So for example
   there’s this in the list:
 * `style="default|silver|green|red|blue|brown|purple|cyan|lime|black"`
 * So let’s say you want the style to be blue, this is the shortcode:
 * `[cool_tag_cloud style="blue"]`
 *  Thread Starter [nggum](https://wordpress.org/support/users/nggum/)
 * (@nggum)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11288467)
 * Thank you for your help!
 *  Thread Starter [nggum](https://wordpress.org/support/users/nggum/)
 * (@nggum)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11288468)
 * Solved…
 *  Thread Starter [nggum](https://wordpress.org/support/users/nggum/)
 * (@nggum)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11288496)
 * Hey I think the on_single_display=”global” command might be broken.
    It doesn’t
   show all of my tags.
 * Here is my shortcode:
 * [cool_tag_cloud
    font_family=”Verdana, Lucida, sans-serif” align=”left” font_weight
   =”normal” number=”0″ order_by=”name” order=”ASC” taxonomy=”post_tag” tooltip=”
   yes” nofollow=”no” animation=”no” text_transform=”none” on_single_display=”global”][/
   cool_tag_cloud]
 * Thank you
 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [7 years ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11289718)
 * Hi,
 * It’s global by default. You only need to set it to **local** if you need to show
   tags of the specific post, if you’re showing all of them no need for the parameter.
 * But it should still work fine if you set it to **global** (just not needed).
 * You’re not getting any tags shown with that shortcode?
 *  Thread Starter [nggum](https://wordpress.org/support/users/nggum/)
 * (@nggum)
 * [7 years ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11292795)
 * Hey,
 * I’d like to start by saying thanks for being so helpful and active!
 * Yea I don’t think the shortcode is working properly or I’m doing something wrong.
 * Here is the shortcode I’m using:
 * [cool_tag_cloud
    font_family=”Verdana, Lucida, sans-serif” align=”left” font_weight
   =”normal” number=”0″ order_by=”name” order=”ASC” taxonomy=”post_tag” tooltip=”
   yes” nofollow=”no” animation=”no” text_transform=”none” smallest=”10″ largest
   =”20″ ] [/cool_tag_cloud]
 * It seems like none of the parameters are working as expected.
    I tried changing
   everything but the page wasn’t updated and I’m not sure why. I set the page visibility
   to private if that makes a difference.
 * Thanks again
 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [7 years ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11294002)
 * Hi,
 * You’re welcome.
 * Do you have line breaks in the shortcode you use or did you just add the line
   breaks in the message so it’s clearer which parameters you use? Because shortcodes
   can’t have line breaks added like that.
 * Try this:
 * `[cool_tag_cloud font_family="Verdana, Lucida, sans-serif" align="left" font_weight
   ="normal" number="0" order_by="name" order="ASC" taxonomy="post_tag" tooltip="
   yes" nofollow="no" animation="no" text_transform="none" smallest="10" largest
   ="20"]`
 * I just tried that one on my installation and worked fine.
    -  This reply was modified 7 years ago by [WPKube](https://wordpress.org/support/users/wpkube/).
 *  Thread Starter [nggum](https://wordpress.org/support/users/nggum/)
 * (@nggum)
 * [7 years ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11294198)
 * Yes, that was the issue. Thank you!
 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [7 years ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11298488)
 * Happy to hear it’s sorted out. You’re welcome.
 *  Thread Starter [nggum](https://wordpress.org/support/users/nggum/)
 * (@nggum)
 * [7 years ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11311074)
 * Is this supposed to work on pages as well as posts?
 * When I put this shortcode on a page, the result is just an empty small box.
 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [7 years ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11312760)
 * Yeah, should work on pages as well. Are you perhaps setting the on_single_display
   to local? Pages don’t have tags so it won’t work as local there.

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

The topic ‘Create shortcode with custom parameters’ is closed to new replies.

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

## Tags

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

 * 11 replies
 * 2 participants
 * Last reply from: [WPKube](https://wordpress.org/support/users/wpkube/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/create-shortcode-with-custom-parameters/#post-11312760)
 * Status: resolved