How to redirect non-logged in users to login with post_password_required()
The function you are using– post_password_required— is true for password protected pages, not for private pages. I am honestly not sure which you mean, but if you do mean “private” as in most of your description then… I am not aware of an is_private function but you can check the post object itself. There is … Read more