Invitation Code Content Access - How To - Display Content Access Form (Shortcode)
Displaying the Content Access Form
TIP: What Are Shortcodes
Shortcodes add dynamic content to your site via a small piece of code.
What is the Content Access Form
Every time a user tries to access a locked content, he/she will be directed to the page you choose in the settings. Learn more: Invitation Code Content Access - Settings - General (Configuring Access)
This page should contain the form which prompts the user to enter the access code.
- Users that enter the correct code will be directed to the appropriate content successfully.
- Users that enter an invalid code will see the Invalid access code message.
Adding the Form
To add the form to a page, apply the shortcode
[cmicca_access_code]. The only parameter is view.
[cmicca_access_code view="one"]- The form will ask for long codes
[cmicca_access_code view="four"]- The form will ask for codes with four digits
Learn more about codes with four digits Invitation Code Content Access - Limiting Codes to Four Digits
Note that you can customize the page with the code as you see fit - it doesn't have to include just the form.