Skip Navigation

[Resolved] Show Login form when page is private and user is not logged in

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 6 months ago.

Assisted by: Waqar.

Author
Posts
#2684967

Hi,
I have a website with public and private area accessible to "Subscribers" only.
I created a post access group called "Private" and I assigned Read only to subscribers.

If I'm not logged in and I i go to a page that I assigned Private to, I get a 404 but I would like to show a Login form with some text above it.
How can I achieve it?
Are the settings correct?

#2685186

Hi,

Thank you for contacting us and I'd be happy to assist.

From the post group's settings, you can select a content template to show, when users with no access to the pages try to visit it. That content template can include a login form, as explained in the following guides:
https://toolset.com/lesson-placement/lesson-placements-1645837-1655635/
https://toolset.com/lesson-placement/lesson-placements-1645837-1622351/

I hope this helps and please let me know if you need further assistance.

regards,
Waqar