Hey everyone,

I would like to have a unique reference for my posts. For this I decided to output 2 letters from the custom post type name and the unique post ID which is generated automatically by wordpress.

So for example if my post type is called "os_fashion" and the post ID is 23456 - I would like to output in a string fa23456 which is the 3rd and 4th character of the custom post type name combined with the post ID.

I require some help with coding this as my php skills are quite limited.

thanks in advance for your help guys
Andy