Cleaning up PHP template to work for more posts