• Resolved Michael

    (@mkalina)


    I noticed that the amount of URLs shown on the sitemap does not equal the amount of posts and pages I can see in the WordPress backend. (Yes, I have checked for noindex and other settings like status, etc.) There should be 1.892 published posts, but the sitemap only shows 1.203. – What can I do to make all the posts appear there?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @mkalina,

    The number of posts shown has been limited to gracefully support weaker web hosting.

    You should use this filter to increase the number from 1200 of any post type to any given number, where 2000 is an example:

    add_filter( 'the_seo_framework_sitemap_post_limit', function( $default = 1200 ) {
    	return 2000;
    } );

    Cheers! ??

    Thread Starter Michael

    (@mkalina)

    Oh wow, that answer was fast. Thank you!

    (BTW: Is the sitemap.xml dynamically generated every time it is called or only if some specific action is triggered? I noticed it takes some time to load and the generation date is up to the second…)

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi @mkalina,

    I missed your last question earlier ??

    If you check out the source of the sitemap (CTRL+U on Windows Chrome), you’ll see the generation time at the top, and whether it’s from cache or not at the bottom.

    This is where transient caching is very useful. You can find options for this under the Performance tab at the General SEO settings.

    Thread Starter Michael

    (@mkalina)

    Alright, thanks. So easiest would be to set return to the dreaded “-1” and activate caching, if I want to make sure that all posts (and pages? and custom post types?) are included. Right? Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Wrong number of posts/pages in sitemap’ is closed to new replies.