Nope, that didn’t work quite right. But this DOES:
Notes on highlights:
– Lines 1 to 3 have been added to include a message to non-logged-in users.
– is_user_logged_in conditional added to line 5 AND php endif added at the end (nested “if” statements… great stuff!)