Support » Plugin: Cool Tag Cloud » Order by Count shortcode

  • Hi,
    I saw your post of almost 2 years ago on the same topic and changed the order_by to orderby, but this still isn’t working. On the page it is still showing the tags sorted by name and ascending.

    I need it ordered by count and descending.

    My settings are:
    [cool_tag_cloud number=”25″ orderby=”count” order=”DESC” taxonomy=”list-tags” style=”silver”]

    Your assistance would be highly appreciated.

    By the way, great plug-in!!!

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

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

    (@wpkube)

    Hi @raybez

    Does it work in the widget (instaed of a shortcode). Let me know, that’ll give me an idea as to where to look for the cause of the issue.

    By the way, great plug-in!!!

    Thank you, happy to hear that.

    Thread Starter raybez

    (@raybez)

    Hi,

    Thanks for getting back to me so quickly.

    I can’t use it as a widget as the taxonomy=”list-tags” doesn’t show up as an option. (It is a custom tag created by the ListingPro theme.)

    I therefore have to use it in its shortcode form.

    It would be great if the widget could identify custom taxonomies and have it in the dropdown list as an option…

    Thread Starter raybez

    (@raybez)

    OK, so I did a bit more testing and saw that TAGS were listed twice in teh dropdown list, so I selected the second one and it now shows the custom tags. BUT the order is still incorrect in the widget so it is both the shortcode and widget that works the same.

    It is kind of strange how it works.

    When I order by name or count then it takes the first 25 items of the entire tag list and orders it descending or ascending. It is like it never takes the entire tags list into consideration; it is always only the top 25 items that gets displayed.

    I also think that because the top 25 all have a count of 1 it makes no difference whether I order by name or count…

    Plugin Author WPKube

    (@wpkube)

    Hi @raybez

    The taxonomy selection in the widget shows all the registered taxonomies. Names can be duplicated since it’s the name that is set for the custom taxonomy, we don’t modify the names and often developers just use “Tags” and “Categories” for names of custom taxonomies, I do that as well. Will see if there’s a way to help differentiate which taxonomy comes from where.

    As for taking the first 25 items it finds and ordering those (instead of all items), that should be the case only with the random order (limitation of the wp_tag_cloud() WordPress function). It randomizes the order of the first X amount of tags it finds.

    But for order by name and count it should actually take all tags into account.

    I also think that because the top 25 all have a count of 1 it makes no difference whether I order by name or count…

    If you add one of tags to be on 2 posts, does it show as the first tag in the list?

    Edit:

    I probably misunderstood that last part. Do you have tags with more than 1 post on them?

    • This reply was modified 1 year, 7 months ago by WPKube.
    Thread Starter raybez

    (@raybez)

    Yes I do.

    There are 2,894 tags and some have up to 6 posts associated with it. It is these that I want to show in the cloud.

    I therefore need the tags sorted by count and descending.

    Plugin Author WPKube

    (@wpkube)

    Hi @raybez

    Did some tests and it seems that the WordPress wp_tag_cloud() function has a problem with ordering custom taxonomies by count. Regular tags/categories work but custom taxonomies don’t.

    I’ll look into it and figure out a way to resolve that issue. Will keep you informed.

    Thread Starter raybez

    (@raybez)

    Aah brilliant, so I am not going insane.

    Thanks and waiting in anticipation.

    Hello @wpkube ,

    I’m having the same issue, order by count does not work and I’m not using a custom taxonomie. (Also placed it via shortcode)

    How my order should be (visualized by size): https://prnt.sc/10idarf

    E.g. Baby and Tipps would be the top spots. But actually it’s sorted by alphabet: https://prnt.sc/10ideph

    Link to my Example: Link

    It would be great if you could find a solution for this. Or have you @raybez found a solution in the meantime?

    Thanks!

    Hi @wpkube

    I too seem to be unable to get ‘count’ to work via shortcode. As far as I am aware I am also not using any form of custom taxonomy.

    This is a very useful plugin and hoping you can find and fix the issue.

    Thanks

    Plugin Author WPKube

    (@wpkube)

    @loano1 @raybez

    The plan is to release a new update that fixes that this week.

    @hellojoe

    This specific issue is related to ordering of tags by count, which is a WordPress limitation. Showing the count should be unrelated to the order by count, so please submit a separate support request for that (to keep things organized) and we’ll figure it out.

    Thread Starter raybez

    (@raybez)

    @wpkube Do you have an update on this yet?

    Plugin Author WPKube

    (@wpkube)

    Hi @raybez

    Sorry for the wait. Just released a new update, can you please try it out and let me know if it resolves the issue.

    Thread Starter raybez

    (@raybez)

    Hi @wpkube

    Unfortunately the upgrade didn’t solve the issue for me. You can view the tags in the center of the page on the home page of Ashrays. The shortcode that I use is as follows:

    [cool_tag_cloud style="silver" number="8" order_by="count" order=desc" taxonomy="list-tags"]

    The order is still asc as these tags have the lowest count.

    Plugin Author WPKube

    (@wpkube)

    Try this:

    [cool_tag_cloud style="silver" number="8" orderby="count" order="desc" taxonomy="list-tags"]

    The difference is that instead of order_by it’s orderby

    And there was a missing quote in the order parameter.

    Thread Starter raybez

    (@raybez)

    I can confirm that it is still only sorting by name and not by “count”. Also, the order doesn’t change whether I set it to “desc” or “asc”; which is the same as before.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Order by Count shortcode’ is closed to new replies.