How do I show a form only to logged in users?

Install the plugin User Access Shortcodes to give you access to the [UAS_loggedin] shortcode.

Then simply put the form shortcode between the opening and closing shortcodes.

1
2
3
[UAS_loggedin]
[quform id="1" name="Contact form"]
[/UAS_loggedin]
[UAS_loggedin]
[quform id="1" name="Contact form"]
[/UAS_loggedin]

If you want to show a message to logged out users you can use the [UAS_guest] shortcode.

1
2
3
[UAS_guest]
Please <a href="/wp-login.php">log in</a> to submit this form.
[/UAS_guest]
[UAS_guest]
Please <a href="/wp-login.php">log in</a> to submit this form.
[/UAS_guest]
Be inspired. © 2018 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy