Add x post each day to sitemap

#46518
  • Resolved Ssurfer
    Rank Math free

    hi,

    we have a new website with 20k custom post.
    Can we add each day 200 new entries automatically? Otherwise we get in trouble with google.

    Maybe you have an idea where to start coding to meet our goal?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Todd
    Rank Math free

    Hello,

    Thanks for getting in touch with us

    You can do that with a work around.
    1. Remove the Sitemap URL from your robots.txt file
    2. Go to WordPress Dashboard > Rank Math > Sitemap Settings > Global. Set the limit at 200 per sitemap.
    3. Go to domain.com/sitemap_index.xml and find the very first post-sitemap1.xml file.
    4. Submit that sitemap to Google.
    5. Do the same for every sitemap every day.
    6. Make sure your DON’T submit the sitemap_index.xml file.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Thank you for contacting Rank Math today.

    Do you wish to automatically create new custom posts? If so, this might be an issue to do with your custom post provider, rather than Rank Math. Rank math automatically adds new posts to sitemap if they are marked to index.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi,
    i ended up put some code in build_root_map method.
    Now i can controll the amount of xml-links and add every day a new one with 200 entries.

    So we have all posts available on our website, but google get’s only 200 new pages a day.

    Thank you for your help.

    Todd
    Rank Math free

    Hello,

    We are glad it is all sorted now.

    Please do not hesitate to let us know if you need our assistance with anything else.

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

The ticket ‘Add x post each day to sitemap’ is closed to new replies.