WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 19 months ago

Last modified 19 months ago

#18502 closed enhancement (wontfix)

Show ID on Custom Post Types Permalinks

Reported by: kaiserlino Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Rewrite Rules Keywords:
Focuses: Cc:

Description

Hi...
I have been using now lots of custom post types for different portals, and found that it's something no one ever knew, thought would be a cool feature if possible.

Now i have one custom post type for dvds, when the user publishes, it gets to
/dvd/name-of-dvd

The other settings for permalinks is set to show /%post_id%/ so in the blog it gets
/1/name-of-post

Just on custom post types it's imposible to make that.
For some things, like jobs, dvd, books, maybe there are things with same name, and an ID would be better to identify...

Change History (3)

comment:1 @scribu4 years ago

  • Component changed from Post Types to Rewrite Rules
  • Keywords reporter-feedback removed

comment:2 @c3mdigital19 months ago

  • Resolution set to wontfix
  • Status changed from new to closed
  • Version set to 3.0

Currently custom post types require you to roll your own rewrite rules and manually define a custom structure for this using WP_Rewrite and the add_permastruct method. See: http://kovshenin.com/2010/extending-custom-post-types-in-wordpress-3-0/

comment:3 @SergeyBiryukov19 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.