Support » Plugins and Hacks » [Resolved] [Plugin: Edit Flow] No custom statuses on CPTs

[Resolved] [Plugin: Edit Flow] No custom statuses on CPTs

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Daniel Bachhuber


    Some questions:

    • What other plugins are you using? Does the problem persist when the plugins are deactivated?
    • Can you share the code you’re using to register the custom post types?
    • Can you share screenshots of what you see when it’s working correctly, and what you see when it’s not working correctly?

    I just tried doing it again with a fresh, vanilla WP installation.

    I registered a CPT:

    add_action( 'init', 'register_cpt_test' );
    function register_cpt_test() {
        $labels = array(
            'name' => _x( 'Tests', 'test' ),
            'singular_name' => _x( 'Test', 'test' ),
            'add_new' => _x( 'Add New', 'test' ),
            'add_new_item' => _x( 'Add New Test', 'test' ),
            'edit_item' => _x( 'Edit Test', 'test' ),
            'new_item' => _x( 'New Test', 'test' ),
            'view_item' => _x( 'View Test', 'test' ),
            'search_items' => _x( 'Search Tests', 'test' ),
            'not_found' => _x( 'No tests found', 'test' ),
            'not_found_in_trash' => _x( 'No tests found in Trash', 'test' ),
            'parent_item_colon' => _x( 'Parent Test:', 'test' ),
            'menu_name' => _x( 'Tests', 'test' ),
        $args = array(
            'labels' => $labels,
            'hierarchical' => true,
            'supports' => array( 'title', 'editor' ),
            'taxonomies' => array( 'category' ),
            'public' => true,
            'show_ui' => true,
            'show_in_menu' => true,
            'show_in_nav_menus' => true,
            'publicly_queryable' => true,
            'exclude_from_search' => false,
            'has_archive' => true,
            'query_var' => true,
            'can_export' => true,
            'rewrite' => true,
            'capability_type' => 'post'
        register_post_type( 'test', $args );

    Then I went to Edit Flow > Editorial Comments and Notifications and checked the box Tests.

    I went to the Add New Test screen and I see the Editorial Comments and Notfications metaboxes but there are no custom statuses. Only Draft and Pending Review.

    There is no Editorial Metadata metabox either.

    In the regular Add New Post screen, I see Editorial Comments, Editorial Metadata, Notifications and the custom statuses.

    Plugin Author Daniel Bachhuber


    Did you make sure to enable custom statuses for the CPT with these settings? Using the code you’ve provided, I did so and they show up fine.

    For editorial metadata, you’ll need to make sure the meta box is made visible through screen options.

    Where is your WordPress site hosted?

    I didn’t even see that options tab in the custom statuses settings. That screen looks so much like the standard categories screen that I was just completely blind to it.

    Sorry for the trouble.

    Plugin Author Daniel Bachhuber


    Heh, no worries. Glad it was an easy fix 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Edit Flow] No custom statuses on CPTs’ is closed to new replies.