I want to create a script for when I add a title and an image to a post, and then when i publish, i want it to auto create a description
Something like . . . . .
You are viewing [title of post]! These are great hairstyle designs in our [category] section. Hope you try this look and feel on your hair today. Ever considered changing it up, you might like this [random post title and link]
This would be the body content of the post, In the last part it will select a random post and place his title and link (you might like this [random post title and link])
How can i achieve this using a php script and calling it from the publish button?