Yoast SEO
[Plugin: WordPress SEO by Yoast] Categories and custom taxonomies are being excluded from the sitema (1 post)

  1. Memo
    Posted 3 years ago #

    WordPress version: 3.4.2
    WordPress SEO version:

    I edited categories and custom taxonomies and after saving them they were excluded from the sitemap.

    It could be a wrong validation when "noindex" term is validated in the sitemap class.
    It is checking if ( wpseo_get_term_meta( $c, $c->taxonomy, 'noindex' ) && wpseo_get_term_meta( $c, $c->taxonomy, 'sitemap_include' ) != 'always')
    And if i'm not wrong it should be
    if ( wpseo_get_term_meta( $c, $c->taxonomy, 'noindex' ) == 'noindex' && wpseo_get_term_meta( $c, $c->taxonomy, 'sitemap_include' ) != 'always' )

    The same is happening when you edit "Meta Robots Index" in posts/pages.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.