简体   繁体   中英

How to show different WordPress front page for logged out and logged in users?

I currently have a Wordpress membership site and its homepage explains how to sign up, etc.

I want to have a different homepage for people who already signed up/ are signed in so that they don't see this homepage since it only contains content pertaining to users who have not signed up.

I searched online but couldn't find a set answer to this question. Any ideas on how to do this?

What plugin are you using to help you with your membership. S2Member and Ultimate Members and most other plugins have a feature that will allow you to redirect to a specific page once signed in. Keep in mind the ability to sign in or stay signed in also depends on your cache and cookies and most caches time out after a period of time. So if a user signed up and logged into and didn't log out but revists the site tomorrow they would more than likely have to sign back in again because their cache timed out after a period of time. (For most it about 7hours) but you can use a caching plugin to increase the time to days would should solve your problem for the most part.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM