2013-09-19, 04:56:17
NM does insert news posts in the Sitemap, but only if you still use GS 3.0 :-)
Since GS 3.1 sitemap hooks cannot be used by plugins like NM to insert their dynamic/non-page items in the Sitemap.
No easy way to fix this right now (mvlcek uses a clever workaround in his I18N plugin, but it's still not perfect)
Related threads:
http://get-simple.info/forums/showthread.php?tid=3056
http://get-simple.info/forums/showthread.php?tid=2624
Open issue: https://github.com/GetSimpleCMS/GetSimpleCMS/issues/363
I may create a simple plugin to generate an alternative Sitemap that includes NM posts, until this is fixed (when I have the time)
In the meantime, you can try patching GS as I suggested and manubz found, but in NM versions 2.2.6 or later you must also edit news_manager.php and change this:
by this:
Since GS 3.1 sitemap hooks cannot be used by plugins like NM to insert their dynamic/non-page items in the Sitemap.
No easy way to fix this right now (mvlcek uses a clever workaround in his I18N plugin, but it's still not perfect)
Related threads:
http://get-simple.info/forums/showthread.php?tid=3056
http://get-simple.info/forums/showthread.php?tid=2624
Open issue: https://github.com/GetSimpleCMS/GetSimpleCMS/issues/363
I may create a simple plugin to generate an alternative Sitemap that includes NM posts, until this is fixed (when I have the time)
In the meantime, you can try patching GS as I suggested and manubz found, but in NM versions 2.2.6 or later you must also edit news_manager.php and change this:
Code:
if (!function_exists('generate_sitemap')) { // exclude GetSimple 3.1+
add_action('sitemap-additem', 'nm_sitemap_include');
}
Code:
add_action('sitemap-additem', 'nm_sitemap_include');