Create a dropdown with Custom Post Types as option in admin

Question

I need to create a dropdown menu with “posts from a custom post type” as option.

This dropdown will be placed as custom meta box.

For example, I want all posts with the custom type “Video” as option in the select.

<select>
   <option>post title n°1<option>
   <option>post title n°2<option>
   ....
</select>

Thanks

0
, Steffi 2 years 2020-01-12T08:42:28-05:00 0 Answers 71 views 0

Leave an answer

Browse
Browse