• Resolved arnieswap

    (@arnieswap)


    Hi,

    We have a news site, but we also publish HowTos and Tutorials on Linux and Open Source. We don’t want these kind of posts to be indexed by News Site map. We are properly marking such posts under ‘HowTo’ and ‘Tutorial’ categories. Is there any way to exclude desired categories from beling indexed?

    Best
    Arnie

    http://wordpress.org/plugins/xml-sitemap-feed/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi Arnie, this is possible with the development version.

    Download it from http://wordpress.org/plugins/xml-sitemap-feed/developers/ and upload via FTP, overwriting the current version on your site.

    You will see a new option to limit news posts to certain categories. That’s not exactly the same as exluding a particular category but still, by including all others you get the same result πŸ™‚

    Thread Starter arnieswap

    (@arnieswap)

    Hi RavanH thanks. I tried and am getting this error

    http://www.extremeta.com/sitemap-news.xml

    Swapnil

    Did you upload all the files? There seem to be missing three .xsl stylesheets in the http://www.extremeta.com/wp-content/plugins/xml-sitemap-feed/includes/xsl/ directory. Or is there something blocking direct requests to files in the plugin directories for any files except js and css, like a security plugin maybe?

    Thread Starter arnieswap

    (@arnieswap)

    Thanks. Something was breaking it. I removed all plugins and then reinstalled. When I activated it I got this error. But after reloading the page it worked.

    Warning: strip_tags() expects parameter 1 to be string, array given in /home/extreme2/public_html/wp-content/plugins/xml-sitemap-feed/includes/admin.php on line 717

    Warning: Cannot modify header information – headers already sent by (output started at /home/extreme2/public_html/wp-content/plugins/xml-sitemap-feed/includes/admin.php:717) in /home/extreme2/public_html/wp-includes/pluggable.php on line 875

    The site above is a test site, but I am planning to use it on production site Muktware.com. Any caveats?

    Thanks

    Strange… I cannot reproduce the error. Did you set any external sitemaps at ‘Include custom XML Sitemaps’? If so, could you remove them again? If not, could you try setting a fictive (it does not have to exist) external sitemap there? Then save again to see if the error persists…

    IF that does not change anything, could you try disabling the plugin (not removing it!) and re-enabling again? It will reset all your sitemap plugin settings which might resolve the warning message.

    Thread Starter arnieswap

    (@arnieswap)

    I tried on two dirrent sites and had the same issue. I can try it on a test fresh install. BTW, it’s working fine except for that error. Great job. Will make donation πŸ™‚

    Could you try the new dev version? I included an extra check that should prevent the warning…

    Please let me know and thanks for reporting it πŸ™‚

    Hi, I had the same need to eliminate categories from my google news sitemap. I downloaded and installed the developers version of the plugin. I selected only the categories that I want but they still seem to show up in the sitemap after I rebuild it.

    What should I look for to fix this?

    Thanks

    Thread Starter arnieswap

    (@arnieswap)

    Hi,

    I installed the dev version and it shows ONLY the ones that I selected. So it’s working fine at my end. @sitebizniz are you talking about newsxml or just site xml?

    News. I think I found the problem. Another plugin was overwriting the sitemap. thanks for your quick response.

    davide

    (@davidemetupit)

    Hi,
    arnieswap, RavanH, what version are you talking about? I’m using 4.3.2 and I’m not sure you talk about this one,
    thanks, I’ve the same need
    Davide

    @davide – you can download the current development version from http://wordpress.org/plugins/xml-sitemap-feed/developers/ (under Other Versions)

    Thank you for adding feature this to the developer version. I have some feedback:

    I find it is easier to omit vs. include especially when you just want to exclude one category. Authors may create a new category on the blog and then it doesn’t get included in the feed because you have to make sure that the new category is highlighted in the feed settings when the new category is created.

    The development version works well

    @papayainternet, thanks for your thoughts. It makes sense but the same can be said for the reverse case. I planned to actually offer both (either include or exclude selected categories) but have not had time to implement that πŸ™‚

    @jack.cronfield, thank for the feedback!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Exclude Categories from being indexed to Google News sitemap’ is closed to new replies.