Shortcodes
Shortcodes are a simple yet powerful feature in WordPress and MemberDash. They allow you to insert dynamic, membership-specific content anywhere on your site, without writing any code. Whether you’re adding login forms, displaying a user’s membership status, or customizing what different users see, shortcodes make it all possible.
This guide introduces shortcodes in MemberDash, walks you through how to use them, and provides common examples to help you get started quickly.
What Are Shortcodes?
Shortcodes are small snippets of text that you add to pages, posts, or widgets to display dynamic content. They look like this:
[ms-membership-login]
When a user visits the page, MemberDash replaces the shortcode with the actual login form, Membership info, or other output.
How to Use Shortcodes
You can add a shortcode to any content area that uses the WordPress block editor:
- Go to the page or post where you want to insert the shortcode.
- Click the + icon and choose the Shortcode block.
- Paste your shortcode into the block (e.g., [ms-membership-login]).
- Click Publish or Update to save your changes.
You can also paste a shortcode directly into a Paragraph block. WordPress will still process it correctly.
You’ll find a comprehensive list of shortcodes below, along with docs designated for each that include examples and definitions.