• Resolved yellowhippo

    (@yellowhippo)


    Hello,

    Great plugin. I apologize if this question has been posted somewhere, but I’ve scanned the support section and did not find anything.

    I would like to display only 30 tags using amount=30, but only want the tags with the highest count to be displayed, and in alphabetical order – similar to the standard WordPress tag cloud.

    How would I go about doing this?

    Thank you

    https://wordpress.org/plugins/tag-groups/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use the parameters orderby=count and order=DESC to get the tags with the highest count.

    There’s currently no built-in way how to sort then the result alphabetically. It sounds like a great idea for a future version, so I’ll put it on the TODO list.

    I’m afraid that for the time being the only way is to retrieve the result in an array, to sort that array and then render the tag cloud.

    http://www.christoph-amthor.de/software/tag-groups/#b_PHP

    Thread Starter yellowhippo

    (@yellowhippo)

    Thank you for the quick reply. I will try this solution and keep an eye out for any updates.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restrict group to tags with most count’ is closed to new replies.