Jetpack XML Sitemap is not recognizing Classipress' custom post type (ad_listing)
I followed these instructions and then I followed them again and just to make damn sure I didn't mess up I followed them again!
https://developer.jetpack.com/2016/0...-type-support/
I added this block of code to functions.php of my classipress CHILD theme...
PHP Code:
function add_ad_listing_to_xml_sitemaps( $post_types ) {
$post_types[] = 'ad_listing';
return $post_types;
}
add_filter( 'jetpack_sitemap_post_types', 'add_ad_listing_to_xml_sitemaps' );
It has been over two weeks and there still is not a classipress ad in my sitemap. It would be great if someone could provide a hint as to why it's not working.
Was this post helpful? Click the "Thanks" button below.