WordPress: Display a message or other text in a page or post only to logged in users

You can use this to post advice or reminders to logged in users when they need to perform different tasks. All you have to do is add the following anywhere in your theme you want to display the message. ​ Create a shortcode to detect logged in users To turn this into a shortcode so you
Source