[looppress] Shortcode is the heart of looppress’s functionality. This post is going to explain how to use it to create a token gated content section, and don’t worry — it’s easier than it sounds.
What is a Shortcode?
Shortcode is a WordPress feature that allows plugins and themes to inject logic into a post or page. They are placed anywhere you can edit content, and are placed within
Create a new post or page, or navigate to the page you want to place the gated content.
Create a new Looppress Post.
[looppress] shortcode to start the token gated content section.
[looppress] shortcode requirements
In order to gate content, you need to provide at least one of the following shortcode attributes.
nft = "0x000000"
minter = "0x000000"
contract = "0x000000"
[looppress minter = "0x000000"]
Add whatever content, this can be blocks, text, other shortcodes, or whatever you want to the page.
- To stream protected media or let users download protected files, use the looppress_media tutorial
[/looppress] Shortcode at the end of the gated content. This is very important!
That’s it! Publish the page and test out your hard work!