• Resolved nggum

    (@nggum)


    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

    (@wpkube)

    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

    (@nggum)

    Thank you for your help!

    Thread Starter nggum

    (@nggum)

    Solved…

    Thread Starter nggum

    (@nggum)

    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

    (@wpkube)

    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

    (@nggum)

    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

    (@wpkube)

    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 5 years, 8 months ago by WPKube.
    Thread Starter nggum

    (@nggum)

    Yes, that was the issue. Thank you!

    Plugin Author WPKube

    (@wpkube)

    Happy to hear it’s sorted out. You’re welcome.

    Thread Starter nggum

    (@nggum)

    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

    (@wpkube)

    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.