[wp-trac] [WordPress Trac] #37376: Make it possible for custom post type to have an archive but no single
WordPress Trac
noreply at wordpress.org
Sun Apr 15 21:55:07 UTC 2018
#37376: Make it possible for custom post type to have an archive but no single
-------------------------------+------------------------------
Reporter: jason_the_adams | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.6
Severity: normal | Resolution:
Keywords: has-unit-tests | Focuses:
-------------------------------+------------------------------
Changes (by jason_the_adams):
* keywords: => has-unit-tests
Comment:
@swissspidy Added a first pass patch to better clarify what I'm thinking.
Also added string support for has_single, similar to has_archive, to make
it possible to explicitly set the root url for singles. With that it would
be possible to have a unique post_name, archive url, and single url.
Please take a look at this and let me know if this is in the right
direction. If it is, I'll start to put together tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37376#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list