nathanielstern
Member
Posted 3 years ago #
I have "Include following pages of multi-page posts (<!--nextpage-->)" checked in the settings, but it oddly seems to always include one less page than what it is supposed to. In other words, if I have 3 page post, called "blah" it has "blah/", "blah/1/" and "blah/2/" listed, but not "blah/3/". Those first two in the list are also redundant! If I have a 2-page post, the second page is always missing, but the first is listed twice, as "page/" and "page/1/". Is this a bug, or am I missing a setting somewhere?
THANKS!
nathanielstern
Member
Posted 3 years ago #
This is a bug. Not sure how to reach the author of the plug in (hope you get this! didn't want to bother you with a personal email), but here's the fix for those who want it.
In the file "sitemap-core.php," find the line:
for($p =1; $p<=$post->postPages; $p++) {
Change it to:
for($p =2; $p<=(($post->postPages)+1); $p++) {
Then rebuild. That's it!
Of course, google downloaded my sitemap for the first time 30 minutes before I finally figured it out, but I guess they'll get the paged links next month.... Thanks for a great plugin!