Results 1 to 5 of 5
Feb 16, 2013, 10:43 #1
- Join Date
- Feb 2013
- 0 Post(s)
- 0 Thread(s)
Output custom post type name and post id in a string
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