• Resolved Shawn Hooper

    (@shooper)


    I’m working on creating a plugin. Part of this plugin registers a new custom post type. That works fine. The problem is that when I create a new post using that post type, I am unable to publish it.

    The Publish button is present, but it sets the post status to draft. The only options available in the Status dropdown menu are: Draft and Pending Review.

    Feel free to look at the code. I’ve zipped up the plugin here:
    http://www.shawnhooper.ca/wp-content/uploads/2015/08/freevent.zip

    Here’s a few details about my setup:

    • DesktopServer
    • WordPress 4.2.4
    • No other plugins installed
    • TwentyFifteen Theme
    • Loggged in with Administrator role. Tried with an Editor role, same problem.

    Anyone seen this before?

Viewing 1 replies (of 1 total)
  • Thread Starter Shawn Hooper

    (@shooper)

    Issue resolved, it turns out to have been the Javascript code was blocking the updating of the post status dropdown.

Viewing 1 replies (of 1 total)
  • The topic ‘New CPT only has "Draft" and "Pending Review" Post Status options’ is closed to new replies.