Skip to:
Content
Pages
Categories
Search
Top
Bottom

Big to Small Tag listings


  • circedesign
    Member

    @circedesign

    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?

Viewing 5 replies - 1 through 5 (of 5 total)

  • ear1grey
    Member

    @ear1grey

    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?


    circedesign
    Member

    @circedesign

    yes, exactly that


    so1o
    Participant

    @so1o

    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..


    so1o
    Participant

    @so1o


    so1o
    Participant

    @so1o

    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')

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar