How to Restrict Content in WordPress to Logged & Non-Logged in Users ?

Would you like to to restrict or block access to certain content portions of your WordPress site (that is, restrict content to users who are logged into WordPress and those who are not logged in), In other words how to set up a simple membership website with WordPress. This article describes how to restrict the content of a site.