Removed custom query code. It was unnecessary due to WP template heirarchy