[wp-trac] [WordPress Trac] #34136: Allow register_post_type's rewrite to remove CPT slug
WordPress Trac
noreply at wordpress.org
Tue Sep 28 17:46:15 UTC 2021
#34136: Allow register_post_type's rewrite to remove CPT slug
---------------------------+------------------------------
Reporter: BenRacicot | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 4.3.1
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by otherjohn):
I have another case in which the old website had staff as domain.com/john-
doe and each staff page had tons of custom data that would be beneficial
as a custom post type with custom fields and the ability to use the
wordpress rest api. But with a large amount of "staff" pages, to move
them to a CPT with a slug means you have to do a large amount of redirects
(301) which is not ideal. Plus those individuals have it all on their
business cards, etc...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34136#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list