You could use this: https://codex.wordpress.org/Function_Reference/is_user_logged_in
So on the page have this for example:
` <?php
if ( is_user_logged_in() ) {
//show other content or no content
} else {
//show content
}
?>`
Also you could just wrap entire page in:
` `
Sigh, I can’t get member-access to work, and can’t believe there isn’t an easier way to restrict pages to members/non-members. In my case I’d like to restrict the member listing page to members only. Was hoping to find some non-hacks here. I’ll keep looking but this appears to require code changes…
Thanks for your quick responses guys! Since I only want to hide the homepage from log-in users, so where or in which file do I have to insert the codes as you have suggested, @karmatosed? And before what line of codes? And do I have to insert this line of codes as well,
`php if (is_front_page()) : ?><?php else :`