Added support for custom post types