[wp-trac] [WordPress Trac] #37935: Add post ID among post's post type posts
WordPress Trac
noreply at wordpress.org
Mon Sep 5 22:22:43 UTC 2016
#37935: Add post ID among post's post type posts
-------------------------------+----------------------
Reporter: mifr45 | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Posts, Post Types | Version: 4.6
Severity: normal | Resolution: wontfix
Keywords: reporter-feedback | Focuses:
-------------------------------+----------------------
Changes (by dd32):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
I can't see this as something we want to add. ID's are almost impossible
to keep consecutive with how WordPress generates posts. We specifically
downplay using IDs within WordPress, so to add an extra one designed to be
used like this isn't something we're likely to support.
If you wanted to implement this for a site, it shouldn't be too difficult
to achieve, simply hook into the post publishing routine and add it as a
post meta item (or slug perhaps, but numeric slugs are fraught with
danger) and setup a query based off of that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37935#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list