Fixed for new post edit page and added the type to new posts/pages.