[wp-trac] [WordPress Trac] #43746: Custom post type single post feed returns a 404 if has_archive is set to false when calling register_post_type()
WordPress Trac
noreply at wordpress.org
Tue Jun 26 18:00:43 UTC 2018
#43746: Custom post type single post feed returns a 404 if has_archive is set to
false when calling register_post_type()
-------------------------------------+---------------------
Reporter: henry.wright | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: Rewrite Rules | Version: 4.9.5
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-patch | Focuses:
-------------------------------------+---------------------
Comment (by mattkeys):
Just to add to this discussion, I found this ticket when searching for
solutions to why a 404'ing feed is being added to the head on a site I
manage.
The comments feed link tag seems to be added to the head so long as
comments are open on the post type, which they are. However because I have
has_archive set to false, the feed 404's, creating SEO/Crawl issues. After
reading the docs on 'register_post_type' I found the 'feeds' param under
rewrites and set it to true, expecting it to fix the problem, but it did
not, and I eventually found my way here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43746#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list