• Hi,

    When enabling the option:
    “Include following pages of multi-page posts (Increases build time and memory usage!)”

    It seems like the page numbers generated in the sitemap gets offsetted.

    I have a multi-page post with 3 pages.
    post-url/
    post-url/2/
    post-url/3/

    But in the sitemap I get this instead
    post-url/
    post-url/1/
    post-url/2/

    So page 3 is missing and page 1 gets added twice.

    Have I missed something in the settings, or is this a bug?

    Cheers!

    https://www.ads-software.com/extend/plugins/google-sitemap-generator/

Viewing 1 replies (of 1 total)
  • Thread Starter Johan Steen

    (@artstorm)

    I made a quick fix in my install by changing:

    $subPage = trailingslashit($permalink) . user_trailingslashit($p, 'single_paged');

    To:

    $subPage = trailingslashit($permalink) . user_trailingslashit($p+1, 'single_paged');

    Perhaps not the prettiest solution, but now it works as expected.

    It would be nice if this could be fixed in the plugin, so one doesn’t have to keep fixing this in coming updates of the plugin if the problem is still there then.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google XML Sitemaps] Multi-page posts gets offsetted page numbers’ is closed to new replies.