WordPress sorts Posts by date in descending order as default. But what if you want to order Posts by title? Say you have a Category where you archive movie reviews, and you want to sort this by title instead of by date. It’s easy to implement with a single line of code.
When using WordPress, I often see the need to display a different number of Posts in different contexts. Maybe I just want to display the five newest on the frontpage, but show 50 (with just the headlines) when browsing Archives, etc. WordPress doesn’t let you do this – at least not from the Dashboard – in Reader Settings there’s only one field that lets you set the number of Posts, which is used all-over (defaults to 10).