• Hello,

    The plugin is not picking random tags to display on posts.

    Here is the code I use below my WP posts:

    [cool_tag_cloud order=”RAND” order_by=”count” number=”5″ smallest=”14″]

    The plugin is displaying the same tags on all the posts.

    Is there an error from the plugin ? or am I doing something wrong?

    Thanks for your help!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter shopexdia

    (@shopexdia)

    Someone can help?

    Plugin Author WPKube

    (@wpkube)

    Hi @shopexdia

    The random order won’t get 5 random tags (if number is set to 5), it will get 5 tags and then randomize their order.

    Unfortunately WordPress does not have an option for getting random X amount of tags so we are a bit limited by that.

    But there is a way you could achieve random order. You can make it load as many tags as there are (set the number parameter to 0). So it will get all the tags, order them randomly and you can then hide all the tags that come after the 5th one.

    .cool-tag-cloud a:nth-child(n+6) {
    	display: none !important;
    }

    That goes in WP admin > Appearance > Customize > Additional CSS.

    You’ll see the number 6 in there (it means all tags from 6th will be hidden), you can change it for a different amount.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin is not picking random tags to display on posts’ is closed to new replies.