Ready to get started?Download WordPress


Sorting Tags Alphabetically? (5 posts)

  1. schild
    Posted 6 years ago #

    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.

  2. ikiru
    Posted 6 years ago #

    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.

  3. ikiru
    Posted 6 years ago #

    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.

  4. schild
    Posted 6 years ago #

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

  5. Michael Clark
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic