Custom Layout sitemap active

  • Hi, I am having an issue with Custom Layout sitemap generating a sitemap despite being turned off in settings.

    Occurring on 2 sites with the Astra WP theme. NGINX code has been added to configuration file.

    Any help to get these removed from sitemap greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thanks for getting in touch with us.

    Please confirm that you disabled it from WordPress Dashboard > Rank Math > Sitemap Settings?

    If that doesn’t work, we might need to take a closer look at the settings. Please include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for providing the details. The problem why the Sitemap option is not working on your site is because the value for the disable sitemap stored in your site’s Database is 0 whereas Rank Math’s checks for false when adding the post type sitemap.

    I have logged it as an issue and we will fix it by adding a condition to check for the boolean value in the upcoming update.

    For now, to fix the issue on your site, I’ve added following filter code in your theme’s functions.php file:

    
    add_filter( 'rank_math/sitemap/exclude_post_type', function( $value, $type ) {
    	if ( 'astra-advanced-hook' === $type ) {
    		return true;
    	}
    	
    	return $value;
    }, 10, 2 );
    

    I hope that helps. Please let us know if there is anything else.

    Thank you.

    Hello,

    I have updated the sensitive data.

    Another site has the same issiue, Can you please put in the same fix?

    Thank you.

    • This reply was modified 5 days, 2 hours ago by Borogz.

    Hello,

    The email you provided is not working for me.

    You can also edit the file from your end, just head over to Appearance > Theme editor > Funtions.php and add the code above at the end of the file.

    Hope that helps. If you have any further question(s), please let us know. Thank you.

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

You must be logged in to reply to this ticket.