WordPress.org

Ready to get started?Download WordPress

Forums

Simple Multisite Sitemaps
[resolved] Max 10 post/pages in each sitemap (4 posts)

  1. ChrisPaca
    Member
    Posted 1 year ago #

    Hi,

    Love your plugin - simple and works. Have one issue though: only 10 latest links to my newest post/subpages are shown. Older ones are not included in the sitemap. How to change that?

    Greets,
    Chris

    http://wordpress.org/extend/plugins/simple-multisite-sitemaps/

  2. luckyduck.networks
    Member
    Plugin Author

    Posted 1 year ago #

    Oh, will take a look at this. Sorry for the late reply. Never received a notification about new posts in this support section.

  3. bvl
    Member
    Posted 1 year ago #

    I just installed your plugin and also stumbled on the max 10 posts limit.
    By adding 'posts_per_page'=>-1 to sitemap-template.php this was easy to fix though:

    $query_args = array(
    	'post_type'      => array( 'post', 'page' ),
    	'post_status'    => 'publish',
    	'orderby'        => 'date',
    	'posts_per_page' => -1
    );
    query_posts( $query_args );

    Cheers,
    Benny

  4. luckyduck.networks
    Member
    Plugin Author

    Posted 1 year ago #

    Fixed in 1.1.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.