Closed dutchigor closed 5 years ago
'public' => false,
This likely says, that the post with this status should not be seen by the outside world. Not sure how the "draft" status handles its preview link.
yes try 'public'=> true
The example I've shared in the README.md file was about an archive status and was about not showing the post on front.
Thanks, but that makes the post publicly available and this should not be the case until it is published. That did put me onthe right path though and after a bit of googling I came across an undocumented setting: protected. The following settings did the trick for anyone looking for something similar: ´'public' => false, 'internal' => false, 'protected' => true, 'private' => false,´
I have created a status as follows:
Then when I change the status of a participation CPT to Update, and click on View Participation, I get a 404 error. View participation works fine in either Draft or Published status. I noticed that when the post is in draft I get a url like .../?post_type=participation&p=6718&preview=true instead of the slug. As the Update status should basically be a synonym of draft, I would expect to see a similar url when the post is in this status but instead I get sent to the full permalink.
Any idea what could be the cause of this?