[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
Sat Apr 14 17:21:21 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:  Awaiting Review
Component:  Rewrite Rules          |     Version:  4.9.5
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------------------
Changes (by soulseekah):

 * keywords:   => has-patch 2nd-opinion


Comment:

 43746 is an attempt at providing this feature in `register_post_type` by
 introducing a `rewrite` key called `single_feed` which doesn't care about
 the `has_archive` property.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43746#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list