• 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_fields should not be set by checking post_type_supports( $post_type, 'custom-fields' );. Instead you can check if any custom fields are set using get_post_custom.

    I used the Pods plugin/framework to create the custom post types and custom fields.

    https://ww.wp.xz.cn/plugins/threewp-broadcast/

The topic ‘Custom fields checkbox is missing from meta box’ is closed to new replies.