Is it Possible to Change a Custom Post Type Permalink Structure to Use %post_id% instead of %postname%?

For whatever reason, this seemingly simple task is causing some issues for me.

I have a custom post type with a permalink structure similar to this:

Read More

http://mywebsite.com/projects/the-name-of-my-project/

However, I want something like this:

http://mywebsite.com/projects/52418/

Were this a regular old post and not a custom post type, I would simply setup my permalink structure as:

/projects/%post_id%/

But because it’s a custom post type, the method has eluded me.

Any ideas are much appreciated.

Thanks!

Related posts

Leave a Reply

1 comment