Adds if statment around the recent posts section
deletes temp files.