Support » Themes and Templates » Sorting Tags Alphabetically?

  • Does anyone know how to sort tags alphabetically in Prologue? I’ve tried but I can’t quite figure it out. Seems a bit of a mess, but I’m not exactly a coder. I’m surprised I’ve gotten as far as I have.

Viewing 4 replies - 1 through 4 (of 4 total)
  • It would help to know where in the theme the tags you want to sort are. I’ve not looked at Prologue, but tag clouds (wp_tag_cloud) and post tags (the_tags) are automatically alphabetized.

    Having looked at Prologue, I now think I actually understand that your question refers to Recent Projects list in the sidebar. I should have looked at the theme before I said anything.

    What you’ll need to edit is the prologue_recent_projects function in the theme’s functions.php file. I don’t know nearly enough about arrays to be able to fix it, but that’s pretty surely where you need to look.

    Thanks, will start digging. If anyone knows exactly how though, that would save me a lot of time. And yea, I looked at other themes and quickly realized it wasn’t the same here, Ikiru 🙂

    Hi Schild, Simply comment out the arsort line in the functions.php file by putting two slashes in front of it. It should look like this:

    // arsort( $recent_tags );

    Now your tags won’t be sorted. Be aware if you have a lot of tags, you’ll need to increase the $num_to_show variable, which is defined in sidebar.php. If you don’t increase that value, you’ll only get the first 35 tags. For example, the tags from a to m.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sorting Tags Alphabetically?’ is closed to new replies.