Though you create a password protected post, It is visible on homepage, archives,recent post etc with its title and a ‘protected’ prefix as shown in the image.
Everyone can see the post title and try to crack the password.
For certain members who visit the site and have a password can only see the post title. So you should hide password protected posts in WordPress.
Hiding Password Protected Posts Completely From Homepage and Archives
Login to wp-admin
Go to Appearance on the left sidebar
Within Appearance, there is a sub menu called theme editor and click it.
Now find the “Functions.php” file.
There you need to copy the following code and paste it in “functions.php“ file.
After pasting code and updating the file, go to Homepage and Archives page, there you cannot see protected posts or pages title as shown in image.
Now you can share post’s url to your selected member with password.
Hope this article helps you to hide passwords protected from homepage and archives.
If not then comment below, we will try to reply to your queries as soon as possible.
Finally please share this article if it is a useful article for you.