Documentation

Front-end Membership Modules

Home / Visitors Only Content Shortcode

Visitors Only Content Shortcode

There are times when we want to display certain content only to logged in users and to users who are not logged in. Click here for the shortcode to display content only to logged in users.

You can use below shortcode to display the content only to users who are not logged in to your website.

Shortcode Parameters:

class
You can specify custom CSS class for the form container, if you wish to use your own CSS for the form styles.

Using Shortcode Generator

You can use our Shortcode Generator to easily specify parameters and insert this shortcode on any page while editing a page or post.

shortcode-generator-visitors-content

Using visitors only content shortcode in template files

If you are a developer or creating your own WordPress theme, you can call this shortcode via following PHP function: