Custom fields checkbox is missing from meta box
-
Whenever I try to broadcast a custom post, the ‘custom fields’ checkbox is missing in the broadcast meta box.
The checkbox is not missing when broadcasting regular post types.
I was able to let the checkbox appear by adding ‘custom-fields’ through add_post_type_support. But this also causes the ‘custom field’ meta box to appear in the admin screen for the custom post type.
Perhaps
$post_type_supports_custom_fieldsshould not be set by checkingpost_type_supports( $post_type, 'custom-fields' );. Instead you can check if any custom fields are set usingget_post_custom.I used the Pods plugin/framework to create the custom post types and custom fields.
The topic ‘Custom fields checkbox is missing from meta box’ is closed to new replies.