Added support for code-generated page & post types. See issue #138