[wp-trac] [WordPress Trac] #34136: Allow register_post_type's rewrite to remove CPT slug

WordPress Trac noreply at wordpress.org
Thu May 12 18:37:55 UTC 2022


#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 bward):

 Wordpress team,

 CPTs are extremely useful. However, the issue of replacing the slug
 shouldn't be difficult next to impossible to accomplish properly. We have
 tried many methods and they all have some flaws.

 Consider this. The standard post type displays a url of:
 domain.com/example while a custom post type displays a url of:
 domain.com/cpt/example

 Notice, the standard post type is not domain.com/**post**/example.

 So why not extend that same functionality to so many of us who need it?

 Thank you.

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


More information about the wp-trac mailing list