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

    (@cybr)

    Hi @agis775,

    This is intentional, because some shared hosting platforms don’t allow for much memory allocation.

    If you’d wish to increase the number of posts, feel free to use and adjust this filter to your liking:

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

    Note that the filter only has effect if the sitemap’s transient is cleared. This can simply be done by re-saving the SEO settings, or by updating any post.

    If you find that the filter prevents the sitemap from being outputted, then you might wish to lower the return value.

    Cheers ??

    Thread Starter agis775

    (@agis775)

    Hi,
    Thank you for your quick reply.

    Can you please tell me where to add the filter?

    Thank you

    Agis F

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi @agis775,

    You can read about placing filters right here:
    https://theseoframework.com/docs/using-filters/#where

    Be sure to create a backup for if things go wrong!

    If it’s too much of a burden, please don’t worry about it.
    More posts in the sitemap doesn’t have any beneficial effect for your website.
    I also spoke about this subject earlier today, where I also supplied reasons. It’s found here on GitHub.

    Best of luck ??

    • This reply was modified 7 years, 8 months ago by Sybre Waaijer.
    Thread Starter agis775

    (@agis775)

    Hi,

    Thank you for your support.

    Agis F

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