The issue seems to be that the post visibility is set to private when publishing a post, not just for archived posts. Is this by design? Can I keep the default visibility for published posts?
Can you clarify what you mean?
I ask as neither WordPress nor my plugin have a concept of post visibility. My plugin works with the existing WordPress concept of post status (publish, draft, private etc) abd adds a new status of archived. Post status may effect whether a post is visible to a user (but does not necessarily do do).
If ACF is adding a new visibility concept to WordPress you should raise the issue with them.
Resolving this for good order as I believe the problem lies elsewhere. I will however monitor the thread and re open if appropriate
Thank you for the response. It’s just semantics but post status is labeled visibility when using the block editor. I determined that the problem lies with this editor and the ACF plugin. It’s not validating on any status other than publish. They have acknowledged this issue and are investigating further; however, validation still doesn’t work when publishing a post with your plugin active. This is still most likely an issue with the ACF plugin but I thought I should add this detail.