Sorting WordPress categories alphabetically

By default, the blogging platform “wordpress” doesn’t sort categories by alphabetical order. To change this you need to set an argument when calling the function.

Under the theme editor, find where the categories are listed (most often the sidebar) and look for the function wp_list_cats.

To sort by category name use the following.


    Categories


Leave a Reply

You must be logged in to post a comment.