Editing sitemaps

#133350
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Do you mean to redesign how the sitemap page would look? Rank math can only create an XML sitemap for your site and we normally don’t offer custom design options.

    We are looking forward to helping you.

    No I meant to edit the sitemap to not show specific URLs.

    Rankmath is showing a theme file which I don’t want to appear.

    Hello,

    You have a custom post type that should not be indexed but it was still indexed and added to the sitemap. To remove that, please use this filter code in your theme’s function.php:

    add_filter( 'rank_math/sitemap/exclude_post_type', function( $value, $type ){
    	if ( 'fusion_template' === $type ) {
    		return true;
    	}
    	return $value;
    }, 11, 2 );

    Let me know how it goes. We are looking forward to helping you.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.