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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: