Archive in posts sitemap
-
Hello guys,
I am sorry to annoy you with this
I see the page ARCHIVE in posts sitemap:
XML Sitemaps (pressvibes.com)
I have checked your help guide and I found how to remove the archive from html sitemap, I tried to paste this code:add_filter('seopress_sitemaps_html_remove_archive', 'sp_sitemaps_html_remove_archive', 10, 2); function sp_sitemaps_html_remove_archive($display, $cpt_key) { if ($cpt_key === 'product') {//remove "product" archive page return true; } //do nothing for other CPT return false;}But it is not working.
If you have some debug you will not see the code in my functions.php because last time I tried to add something to functions.php sql crashed and I lost everything without abackup, so now I try on a staging website, in local in my computer.
And the result is exactly the same: the page archive is still in posts sitemap.
Is there something I can do?
I would prefer to not add a separate plugin for sitemap, since your plugin can manage it.
ThanksThe page I need help with: [log in to see the link]
The topic ‘Archive in posts sitemap’ is closed to new replies.