How to add Custom Post Type in Jetpack Sitemap

By default, Jetpack’s new Sitemaps module supports Posts and Pages. It also supports Jetpack’s Custom Content Types if you use them on your site.

If you’d like to add support for another Custom Post Type, you can use the jetpack_sitemap_post_types.

By using This filter code in your function.php file you can fetch your custom post type in your Jetpack Sitemap.

CPT Jetpack Php Code

function jeherve_add_cpt_sitemaps( $post_types )
$post_types[] = 'Your_custom_type_here'; return $post_types;
add_filter( 'jetpack_sitemap_post_types', 'jeherve_add_cpt_sitemaps' );

Written By:

Sarmad Gardezi A blog scientist by Mind and a Passionate Blogger by heart. Sarmad is Freelancer, Entrepreneur and Google Apps Scripts Developer from Islamabad, Pakistan.

Subscribe to Email Newsletter