How to add a custom id to each post URL in wordpress

I’m working on wordpress site. I use custom post type as my post type. I want to add custom id with character to post url like www.mydomain.com/g123/postname/. And i also need if i delete /postname/ part from url it must be redirect to the post.

Any one can help?

Read more here: How to add a custom id to each post URL in wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *