I have created a custom post type (proof) that don't have any title. But it has a related post (another custom post type => review).

Now how to generate slug for "proof" based on related "review"?

For example, I have a post review with the title "book" now if I create a new "proof" and relating it to book, I suggest the new proof's title to be "book-1" and if another proof related to book the title become "book-2" and so on...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.