• I have installed EditFlow. I’ve made sure the only plugin on is EditFlow. I added the custom code for limiting status by user role “contributor.”
    I only made one slight change in the code replacing “in-process” with “pending-review”. (We actually don’t need both “draft” and “in-process.”)

    I logged out of my admin account and into my test account which is set to the role of “contributor.” The custom statuses do not appear. The only available one is “draft.” I should at least have available “pitch.”

    Even in my admin account, “pitch” isn’t present (it has “draft” and “pending review.”

    I’m confused about 1) the code for limiting status by user role b’c it doesn’t seem to function and 2) what is the point of having custom statuses for the plugin if they aren’t available even to an admin.

    I’m new, so it is likely perhaps I’m not understanding this plugin’s workflow, but the code not working has me baffled completely. (I’m also not familiar with in the slightest with how to create a secondary plugin. That just sounds scary to me.)

    https://ww.wp.xz.cn/plugins/edit-flow/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter leslie1019wp

    (@leslie1019wp)

    Just to clarify, b’c I don’t state it very well above, these are the roles we have set for “contributor” in the code.

    $permitted_statuses = array(
    ‘pitch’,
    ‘draft’,
    ‘pending-review’,
    );

    Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    Couple questions that might help you track this down further:

    • Is the custom status module enabled, and active for your post type? If the custom statuses aren’t appearing for the admin user, the module might not be active
    • Can you share the custom code you’ve added via Pastebin or a similar code-sharing tool?
    Thread Starter leslie1019wp

    (@leslie1019wp)

    Hi Daniel,s

    Thank you so much for responding.

    The custom status module is enabled and active for the post types, but only “pending review” is showing for admin. For contributor, only “draft” is showing. I also noticed (while testing and doing screencast vid tutorials for everyone) that the dashboard widget is not updating depending on an article’s status. They just keep saying “0” even when there’s items in draft, pending review. Oddly, under the Custom Status screen, it show 2 items in Draft status.

    The code I used is from the plugin’s website. There’s an post there sharing what code to use to enable this. I copied and pasted making sure there were no extra spaces that php would read as html or otherwise. It’s as if all the bits and pieces are there, but I just can’t get them to talk to each other.

    I’ve only used pastebin once (ever) so I hope I’m doing this correct.

    Thread Starter leslie1019wp

    (@leslie1019wp)

    Ok, I’ll past it another way. http://pastebin.com/2y2S5Xwp

    Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    Hmm.. the code snippet looks fine. Can you share a screencast of your admin? I think there’s a conflict going on somewhere, and it would be good to get a visual sense of what stuff looks like.

    Thread Starter leslie1019wp

    (@leslie1019wp)

    I did disable all plugins see if there was a plugin causing a conflict. Unfortunately, it did not change the behavior. I also did a re-install of 3.8.1 “just in case.” No luck.

    I considered uninstalling and reinstalling, but even though that deletes files, it doesn’t append the db. It would still look/fxn the same upon reinstall.

    Here’s the unlisted screencast. http://youtu.be/5PvTiTTnFEU

    Thread Starter leslie1019wp

    (@leslie1019wp)

    Ok, so this is really crazy.

    It’s all suddenly working. I did nothing, but go to bed last night. Get up this morning, have coffee and it’s all working. ??? lol

    If I knew sleep and coffee would do the trick, I’d have just done that yesterday!

    This is the craziest thing I’ve ever seen! But, I’m shutting up and drinking my coffee.

    I do appreciate how fast you responded and concern. Many developers are not active and it’s very reassuring to see a dev team which is very involved. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Custom Status not working’ is closed to new replies.