I have a function that creates a page when I create a post (so as to construct parent-child relationship trees).
I'm using the $title of the post to create the page and this also creates a duplicate slug. Is there a way to alter the slug slightly so as to make it unique? How can I assure that the new slug will not interfere with the original post?