WordPress.org

Ready to get started?Download WordPress

Forums

Edit Flow
[resolved] No custom statuses on CPTs (6 posts)

  1. thatwastaxing
    Member
    Posted 2 years ago #

    Thanks for the plugin!

    EF works great on my regular posts but the Publish box is the default WP one on any custom post type write screens. I'm logged in as admin.

    I've enabled EF for the CPTs in the EF options so I don't know what to do next.

    http://wordpress.org/extend/plugins/edit-flow/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    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?
  3. thatwastaxing
    Member
    Posted 1 year ago #

    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.

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    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?

  5. thatwastaxing
    Member
    Posted 1 year ago #

    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.

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Heh, no worries. Glad it was an easy fix :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic