• Resolved Dubai City Tour

    (@alivanrental)


    Hi,

    I am using the free version of Yost SEO latest version on my site.
    recently I switch my theme from Business Elite to Astra pro.
    I am changing the theme in the local server (for your info).

    My question is that Yoast SEO is not generating a sitemap for all pages and posts.
    The Yoast generated sitemap tracked a few pages and posts, but not all. like we have 20 pages and 10 posts, but Yoast tracked only 5 pages and 1 post.

    could you please advise what could be the issue?

    I am using Yoast plugin only for sitemap generation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @alivanrental

    We understand that not all of the posts and pages are appearing in the sitemap index generated by the Yoast SEO plugin.

    Could you provide us with a link to your sitemap and an example URL of a post or page that is not showing up in the sitemap?

    It’s possible if you’ve set that post or page to not show in the search results (which will give it a ‘noindex’ meta robots tag as well as remove it from the sitemap) or if that post or page has a different canonical URL, that could also be one potential cause as to why it wouldn’t show up in the sitemap. You can learn more about it here — https://yoast.com/help/how-to-customize-the-sitemap-index/

    Thread Starter Dubai City Tour

    (@alivanrental)

    I really appreciate your quick response.

    Actually as mentioned above we have switch the theme, so currently we are doing some modifications in offline (local server) on our website, so we cannot provide you the link of our website as its in local server now.

    Regarding your answer above = All pages and post are set to (to show in search result).
    Also, there is nothing in robot.txt file which blocking any link.

    Also, there is no different cananical url as i manually checked them.

    But = is it possible that in Local server Sitemap doesn’t generate properly by Yoast?

    I am going to live my site, but due to this Sitemap issue i can’t as i am worried to loose our SEO.

    Hi,

    Let’s try a couple more troubleshooting options.

    1. Visit a post that is failing to appear in the sitemap. Then check the source code and search for: robots or index. Ideally, you should see this metatag appear somewhere:

    <meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />

    See image which highlights this: https://ibb.co/r2Q9nRV. If you are not sure how to check the source code this guide can help: https://yoast.com/help/view-page-source-site/

    Can you confirm if you see that tag or not?

    2. Does clearing your caching from your theme, plugin, server, CDN like CloudFlare or browser resolve the issue? If you are not sure how to clear caching from theme/plugin please speak to those authors. If you want to clear cache from the server, please speak to your host provider. To clear the cache from a browser use this guide: https://yoast.com/help/how-to-clear-my-browsers-cache/

    3. If you go to SEO-General-Settings and disable the XML sitemap and then re-enable them (you may also need to clear the cache) does the issue resolve?

    Thread Starter Dubai City Tour

    (@alivanrental)

    Yes the problem has been solved.
    Actually as per your 1st advise there might be canonical issue, and yes there were canonical issue.

    Actually we had copied all database and contents etc from live site to local server for offline changes thus the permalink was changed from original domain name to local server name and we had added canonical url using Yoast plugin which wasn’t change. So once i remove url from canonical than Sitemap detect that page correctly .

    Thank you so much.

    Your support deserves 5 star rating.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘sitemap does not generate for all pages/post’ is closed to new replies.