#18502 closed enhancement (wontfix)
Show ID on Custom Post Types Permalinks
| Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
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_permastructmethod. See: http://kovshenin.com/2010/extending-custom-post-types-in-wordpress-3-0/