folder pages sitemap

#488992
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Rank Math is only able to generate a sitemap for those post types or custom post types that are created using WordPress standards.

    If that isn’t the case with your site, then I would suggest creating a set of sitemaps manually using our guide below:
    https://rankmath.com/kb/custom-sitemaps/

    Hope that helps.

    Thank you.

    Hi Team,

    I have followed your given instructions, But it is not working. It is still the same. I am not able to create a custom sitemap. Please help me out.

    Hi Reinelle,

    I have generated the below sitemap. But I don’t know how to add this in rankmath sitemaps. also it is not showing in the site map ( https://www.digitaloceanmedia.com/sitemap_index.xml). Please guide me.

    Site Map for custom pages – https://www.digitaloceanmedia.com/custom-sitemap.xml

    Hello,

    You can use the below filter to add the additional sitemap to the index sitemap list:

    add_filter( 'rank_math/sitemap/index', function( $xml ) {
    	$xml .= '
    		<sitemap>
    			<loc>http://example.com/new-sitemap.xml</loc>
    			<lastmod>2020-09-14T20:34:15+00:00</lastmod>
    		</sitemap>';
    		return $xml;
    }, 11 );

    Please replace http://example.com/new-sitemap.xml in the above code with the desired sitemap URL.

    You can follow this guide to add the code:
    https://rankmath.com/kb/filters-hooks-api-developer/#add-extra-urls-in-sitemap

    Let us know how that goes.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘folder pages sitemap’ is closed to new replies.