I have a site up where there is one private page and one private post. When logged is as admin, i can view both of these, and they even appear in the search.
However, when logged in as an editor, I can still see the posts, but they don’t appear in the search. I found this a bit strange, was wondering if anyone has experienced this or knows how to make the private pages and posts appear in the search when logged in as an editor?
This is the default WordPress behavior.
If you want to show private posts on the front-end of the site to logged-in editors you can add this code to functions.php.