Added the support for custom Post types