I have a site it has 500 published and 700 draft posts. I want a code
that find a related post for all of my published posts from draft posts.(i mean match published posts and draft posts one by one)
they will be related according to title similarity.
then detach the images of draft posts from them. and attach them to matched published post.