Make WordPress Core

Opened 15 years ago

Closed 13 years ago

Last modified 13 years ago

#18502 closed enhancement (wontfix)

Show ID on Custom Post Types Permalinks

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

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)

#1 @scribu
15 years ago

  • Component Post Types → Rewrite Rules
  • Keywords reporter-feedback removed

#2 @c3mdigital
13 years ago

  • Resolution → wontfix
  • Status new → closed
  • Version → 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/

#3 @SergeyBiryukov
13 years ago

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