0

I have custom post types and custom statuses registered. The post status is updated from a custom drop down box that I have inserted into a metabox on the edit post screen.

It works fine, however when I update a post without changing the status via the custom drop down, the post status resets back to Published. So it seems that if either the Publish button is pressed when creating a post, or the Update button is pressed when editing the post status always defaults to published...

Is there a way to change this?

2
  • Please show your save_post action.
    – Rene Korss
    Mar 31, 2015 at 11:45
  • I adjusted the way in which I am working and switched from "publishing" a post to simply saving it and all is now working as expected... thank you
    – Mike
    Mar 31, 2015 at 16:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.