How to replace post name slug with post ID in Custom Post Types

10/04/2019 | By Dev | Filed in: WordPress.

Here is a way to replace the post slug with the post ID in a custom post type permalink structure.

Example.

Change

To

Assuming the post type already exists with

Refresh permalinks

Refer http://stackoverflow.com/questions/25199501/wordpress-custom-type-append-post-id-at-the-end?answertab=votes#tab-top


Comments are closed here.