• Hi,

    I wonder if it is possible to get a list / array of all meta-boxes that are attached to a custom post-type, no matter if an entry of that post-type allready exists or not.

    That would make it easier to set up a function for the output in my templates, looping through all possibly existing meta fields and set the value to the matabox value or to “”.

    All I found was
    global $wp_meta_boxes;
    But doing a print_r in my custom-post-type-template file doesn’t return anything though there are metaboxes defined for that custom post-type.

  • The topic ‘Get list of metaboxes attached to custom post-type’ is closed to new replies.