Problem:
I'd like to restrict User #7 to be able to read Gravity Form #15 and view its entries, but not know about or be able to access any other Gravity Form.
Solution:
If it is, I suggest you try these:
1) Setup the Gravity Form #15, when user submit the form to create the post, add a custom field "gravity-form-id" to the new post, the field value is number 15.
2) Then create a page, in the page content, you can get current user's ID with shortcode [wpv-current-user info="id"], use it in wpv-conditional shortcode to check if current user's ID is 7 then display the Gravity Form #15 shortcode + a post view:
filter by custom field "gravity-form-id" value is number 15
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-current-user
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-conditional
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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
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)
Este tema contiene 4 respuestas, tiene 2 mensajes.
Última actualización por hace 6 años, 2 meses.
Asistido por: Luo Yang.