How can I fetch all meta-box fields in a dropdown? I am wanting to make a metabox module, for the page-builder I use, so I need a dropdown, which has the title and output the field id
The page builder only shows the custom fields when you create the fields and assign them to the post. You can use the Meta Box Builder or Online Generator tool to grab all the fields into a meta box with a few clicks.
For more information, please follow the documentation.