Hook added to check for page post type on init. resolves #47