-
site map plugin
I noticed that categories in my auto websites are showing in the sitemap.xml which is automatically generated by the sitemap plugin, although I have set my website to hide empty categories from showing in home page.
I suggest an update to the plugin to allow users to select whether or not they want to hide empty categories from showing into sitemap.xml file.
Currently sitemap.xml is showing all categories and ultimately it will be indexed by google which does gives fake results to website visitors.
-
Waiting for a reply please
-
Hello Moosa,
You can try to do it yourself through ftp.
Open file: ftp://plugins>>sitemap>>rlSitemap.class.php
find method: getCategories and replace it to:
PHP Code:
Only registered members can view the code.
save and check sitemap again.
-
Does this work for 4.5.2 ? please
-
1 Attachment(s)
Hi Pete,
You can try to add "return false;" in top of method.
http://forum.flynax.com/attachment.p...tid=2245&stc=1
-
Thanks Curtis, I found an easy way to do this without any coding required, just go in and set any hidden unused categories to inactive and problem fixed.