Set a numeric range for post ID generation based on post type?


I’m wondering if there’s any way to configure WordPress to assign post IDs like so:

Pages ID range: 10000 to 19999
Posts ID range: 20000 to 29999
Custom post type ‘A’ ID range: 30000 – 39999
Custom post type ‘B’ ID range: 40000 – 49999

The rationale for wanting to be able to do this is to make it simple to push changes from a staging site to our live site without the post IDs from the staging site already being taken by new posts from the live site.

, , , , Slbox 4 months 0 Answers 61 views 0

Leave an answer