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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
This topic is split from https://toolset.com/fr/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 réponses, has 2 voix.
Last updated by Franck Il y a 4 années et 8 mois.
Assisted by: Luo Yang.