[wp-trac] [WordPress Trac] #62135: Custom Post Type feed rewrites not generated when has_archive is false
WordPress Trac
noreply at wordpress.org
Fri Aug 22 14:31:57 UTC 2025
#62135: Custom Post Type feed rewrites not generated when has_archive is false
-------------------------------------+------------------------------
Reporter: sippis | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: minor | Resolution:
Keywords: reporter-feedback close | Focuses:
-------------------------------------+------------------------------
Changes (by SirLouen):
* keywords: => reporter-feedback close
Comment:
== Reproduction Report
=== Description
❌ This report can't validates that the issue can be reproduced.
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.1
- Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
- Browser: Firefox 141.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.3
- MU Plugins: None activated
- Plugins:
* Testing Dolly
* Test Reports 1.2.0
=== Testing Instructions
1. Create a the new CPT movies using the code template in Supplemental
Artifats
2. Set Settings > Permalinks to Post Names
3. Go to <url>/movies/feed/
4. 👌 The XML feed is downloaded successfully.
=== Actual Results
1. ❌ Error condition is not occurring
=== Additional Notes
- @sippis can you check the code provided, here we are using as you say
`has_archive` to `false` while using `rewrite.feeds` to `true` and the
feed can be accessed without troubles.
- I'm going to set this as `close` as it cannot be reproduced for now
while the reporter could inform in case he can provide more information
for reproduction purposes.
=== Supplemental Artifacts
Sample code:
{{{
add_action( 'init', function() {
register_post_type( 'movies', [
'label' => 'Movies',
'public' => true,
'has_archive' => false,
'rewrite' => array(
'feeds' => true,
),
'supports' => [
'title',
'editor',
],
] );
} );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62135#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list