[wp-trac] [WordPress Trac] #34136: Allow register_post_type's rewrite to remove CPT slug
WordPress Trac
noreply at wordpress.org
Tue May 30 14:00:17 UTC 2017
#34136: Allow register_post_type's rewrite to remove CPT slug
---------------------------+------------------------------
Reporter: BenRacicot | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 4.3.1
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by BenRacicot):
Hey @michael.ecklund,
Anytime you create a CPT for use as a method of public facing content
creation in web page format where the use is meant to be browsable by URL.
SEO
The current functionality of CPTs should have this built in. Otherwise it
would be similar to if native posts worked like:
{{{
your.com/post/post-name
}}}
or if pages worked like:
{{{
your.com/page/page-name
}}}
But WP does not work this way because adding the CPT as a root path
interferes with many SEO, promotional and content strategies. Please take
a look at the [wordpress.stackexchange.com] question that has got a lot of
attention. This functionality is desired by many.
https://wordpress.stackexchange.com/questions/203951/remove-slug-from-
custom-post-type-post-urls?noredirect=1#comment397952_203951
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34136#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list