I'm using wp_insert_post
on my WordPress project to programmatically generate posts.
The posts that it generates can be accessed by the ugly permalink (http://codex.wordpress.org/Using_Permalinks) of the form /?p=<POST_ID>;
where POST_ID is an auto-incremented identification number.
Is there a way to create a post so that instead of an auto-incremented POST_ID, it uses a globally unique identifier (e.g.: /?p=3de6819c080d978910d56ad3a0d9f62b
)?
If that's not possible, is there a way to disable ugly permalinks for a post so that the post can only be accessed via pretty permalinks?