This is quite easy to do using some simple PHP and some WordPress prebuilt features. Try the following code on any page in your custom template and you should see it working right away.
echo "Hi I am logged in" ;
echo "Oh no I am not logged in" ;
Do you have a better way of programming the above function? Please let us know in the comments below, we would love to hear from you.
Are you after a fully customised WordPress service? visit our WordPress Services page or contact us for an obligation free quote.
If you have any problems or queries please join our Discord community by clicking this link.