The-seo-framework: CPTs not displaying in sitemap.xml

Created on 1 Jan 2018  路  5Comments  路  Source: sybrew/the-seo-framework

My public CPT entries are not displaying in the generated sitemap. I deactivated the sitemap generation cache and updated my CPTs but still nothing. Normal WP posts are in the sitemap.

Am I missing something here? Is there an extra setup to make this work?

[Type] Support

All 5 comments

Hi @wassim,

Happy New Year!

The post type must support the title and editor attributes.
With that, it must also have rewrite enabled and it must be public.

@sybrew Added editor attribute to supports. Now it works! Thanks.

May the new year bring success to you and to TSF!

Is there any reason why editor would need to be a required attribute? We have a CPT that does not use it, but would like the entries to be included in the sitemap.

@timalbert Since 3.0.4 that's no longer required.

The SEO settings now show up on every publicly queryable post type. Title and editor fields are no longer required.

Instead, the post type have these values set to true:

  1. public
  2. rewrite (or _builtin)

Keep in mind that the sitemap maintains a cache. You can flush the cache by re-saving the SEO settings.

@sybrew Yikes where have I been - I am on 2.6! Thanks for the pointer!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

epgunn picture epgunn  路  3Comments

samburgers picture samburgers  路  6Comments

alpipego picture alpipego  路  4Comments

sybrew picture sybrew  路  6Comments

domegang picture domegang  路  4Comments