Rearranging The
Category Order In WordPress
There are some WordPress users that disliked the idea of placing items in
the "New Publications" in there blog category at the end of the page. Which is why
this cool I.T. grad Sebastian has come up with a helpful snippet to solve this minor issue.
Paste this code inside your functions.php file:
Line 1 - Queries
the category list
Line 4 - Looks
for any item that matches the defined value/category (New Publications).
Line 5 - Once
found, it then saves it into a new variable and removes it from the category
array.
Line 11 - Inserts
the category again at the beginning of the array
I hope this clever hack or trick has helped you out. Cheers!
No comments:
Post a Comment