- This topic has 9 replies, 3 voices, and was last updated 6 years ago by
vayu.
-
AuthorPosts
-
-
January 25, 2016 at 8:36 am #5710
vayuMemberHi.
I have added custom statuses to a CPT.'status' => array( 'draft' => array( 'label' => 'Kladde' ), 'processing' => array( 'label' => 'Afventer godkendelse' ), 'completed' => array( 'label' => 'Godkendt' ), 'rejected' => array( 'label' => 'Afvist' ), 'rejected_completed' => array( 'label' => 'Afvist & behandlet' ) )When I create a new post and press the publish button, then it does not publish, but stays on draft. I would like for it to change state to processing.
Another thing I don’t understand, is that it reads “Save” on the publish button, even when it is not published. How come this has changed? Can I get it to read the standard text on the button? -
January 25, 2016 at 12:18 pm #5720
-
January 25, 2016 at 4:17 pm #5740
vayuMemberHi Steve.
Okay, thanks for checking. I also am using version 0.9.9.7. So something else must be causing the problem. I am using wordpress multisite, but this should not cause the problem. I will have to go through my code and plugins.
-
January 25, 2016 at 4:22 pm #5741
SteveKeymasterAre the Piklist Demos working? They use custom statuses.
-
January 25, 2016 at 4:35 pm #5744
vayuMemberOkay, I activated the demos. I then added a new piklist demo post. The same problem appears there. But I am confused. On this page, it says that there must be a draft status, that you can relabel. However, the demo does not use the draft status.
So when I want to save new piklist demo, then the status does not change and stays on the status “New”.The same issue also happens on the button. The text has changed to “Save” and it does not say “Publish” like it does normally.
-
January 27, 2016 at 11:25 pm #5774
-
January 28, 2016 at 5:55 am #5786
ndbeMemberI think it’s default WordPress behavior. If you remove status with name ‘publish’ the button always changes to save and you have to set post status by hand. You can bypass this by creating post status with name publish and different label.
-
January 28, 2016 at 10:20 am #5789
vayuMemberThanks guys for the tips and feedback. I might change mig processing status to publish instead, so can overcome this issue. It seems that there are no ways of controlling what it says on the publish/save button, no hooks as far as I can see. Thats a shame.
-
January 28, 2016 at 10:52 am #5793
ndbeMemberIt’s not a pretty way but you can always do this with JS.
-
January 28, 2016 at 4:49 pm #5800
vayuMemberYes, that was my thought as well, but like you say, it would be nice with a more elegant way. 🙂
-
-
AuthorPosts
- You must be logged in to reply to this topic.