Only registered users can see part of the contents of single.php
If you only want logged in users to be able to see a part of your code you need two things: a standard if statement A function to test is a user is logged in or not aka is_user_logged_in() Note that if a user is not logged in there is no way to know if … Read more