Admin Custom Meta Box – Pull Last 5 Posts from Custom Post Type

I don’t know if you’re looking for information or solution but this post might help you, especially the “Building a custom post meta box” section.

The callback function is actually what you need. In this callback you need to run a loop that get posts from your Custom Post Type Demos and populate it into a HTML select element with specific values.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)