Using a theme that has add_theme_support( 'automatic-feed-links' ); which makes both the main blog feed and main comment feed as well as a single post comments feed links appear in the source head section like:
<link rel="alternate" type="application/rss+xml" title="My Site » Feed" href="http://domain.ext/feed/" />
<link rel="alternate" type="application/rss+xml" title="My Site » Comments Feed" href="http://domain.ext/comments/feed/" />
<link rel="alternate" type="application/rss+xml" title="My Site » Hello World Comments Feed" href="http://domain.ext/2014/06/hello-world/feed/" />
So far so good but… The problem arises when using a custom post type.
Whenever the custom post type settings do NOT have
'has_archive' => true,
then the custom post type comment feed does NOT exist.
But the post comment feed link is still there in the page source while the URL returns a 404 page. And subsequently, Google Webmaster Tools starts reporting many 404’s on your site…
Is this a bug or is there something wrong with my post type?
Thanks 🙂
The topic ‘Automatic Feed Links and Custom Post Type issue’ is closed to new replies.
(@ravanh)
11 years, 10 months ago
Hi All,
Has anyone else noticed the following problem?
Using a theme that has
add_theme_support( 'automatic-feed-links' );which makes both the main blog feed and main comment feed as well as a single post comments feed links appear in the source head section like:So far so good but… The problem arises when using a custom post type.
Whenever the custom post type settings do NOT have
then the custom post type comment feed does NOT exist.
But the post comment feed link is still there in the page source while the URL returns a 404 page. And subsequently, Google Webmaster Tools starts reporting many 404’s on your site…
Is this a bug or is there something wrong with my post type?
Thanks 🙂