bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Big to Small Tag listings

(6 posts)
  • Started 1 year ago by CirceDesign
  • Latest reply from so1o
  • This topic is not a support question
  1. Is there a way to present the Hot Tag listing in a big to small order? If there is a simple code tweak I can do, let me know. Otherwise, as someone who knows very little about coding, I would love it if someone came up with a way to do this. Does anyone else agree?

    Posted 1 year ago #
  2. So, what you're asking is for the tag-could to be re-ordered, based on a tag's popularity rather than its alphabetic position?

    Posted 1 year ago #
  3. yes, exactly that

    Posted 1 year ago #
  4. the easiest way right now is to change the function tag_heat_map()

    change the line

    uksort($counts, 'strnatcasecmp');

    to

    asort($counts); //or
    arsort($counts); //reverse

    may we should have a filter in the function make it pluggable..

    Posted 1 year ago #
  5. with the change set 554 you can now create a function to sort the tags in array as you like and add a filter to sort_tag_heat_map
    add_filter('sort_tag_heat_map', 'your_custom_sorting_function')

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.