• Resolved treperzero

    (@treperzero)


    Good morning,
    my customer has the need of showing 7 different tags, randomly, everytime the page is refreshed.
    He has 76 tags total.
    Here’s the code I used:
    [cool_tag_cloud number=”7″ order=”RAND” text_transform=”uppercase” largest=”22″ smallest=”22″ font_family=”Open Sans, Helvetica, sans-serif” font_weight=”normal”]
    Everytime we refresh the page, the same 7 tags are display, just in a different order.
    How could I fix this?

    Thanks
    Marta

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @treperzero

    It’s a limitation of the WordPress function that returns the tags. It randomizes only the end result (if the amount is set to 5 it gets the 5 tags that match the settings and then randomizes their order).

    A solution would be to make it get all the tags, randomize and then with CSS you hide everything after the 7th tag.

    So, set the amount to 0 so there’s no limit.

    Then in WP admin > Appearance > Customize > Additional CSS, add this:

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

    Thread Starter treperzero

    (@treperzero)

    Thank you so much, it worked!
    Your support is definitely much better than most paid plugins’ one: faster and more accurate.
    Thanks again

    Plugin Author WPKube

    (@wpkube)

    You’re welcome and thank you @treperzero

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tags’ selection never change’ is closed to new replies.