Problem:
What is the best solution to display user form when user is logged and other form when he isn't ?
Solution:
You can try one of below two options:
1) If you are using Toolset Access plugin in your website, you can follow our document to display different content to logged-in or non-logged-in users:
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/
See screenshot:
https://toolset.com/wp-content/uploads/2014/05/conditional-shortcode-dialog.png
The "guest" role is non-logged-in users
2) If you are not using Toolset Access plugin, you can use [wpv-conditional] shortcode to check if it is a logged-in user, for example:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-shortcodes-in-conditions/
in section "Checking User Information", there is an example codes
Relevant Documentation:
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.
This topic is split from https://toolset.com/forums/topic/how-i-can-use-user-form/
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/Hong_Kong (GMT+08:00)
This topic contains 2 replies, has 2 voices.
Last updated by 5 years, 4 months ago.
Assisted by: Luo Yang.