Adds a custom class to the last post in a loop