Changed array to name of post fields as found in wordpress.