Creating meta_key and value (ID) by selecting post name

How can I create a dropdown box in posts editor page that lists the 15 last posts and creates a diferente meta_value fora each one of them?

Example:

If I select post one, it creates (on save) a custom field (relate_this) with the ID of the chosen post.

Read more here: Creating meta_key and value (ID) by selecting post name

Leave a Reply

Your email address will not be published. Required fields are marked *