Everyday Use
Add a Magic Link Login Form Block (No Shortcode)
Want a passwordless login form without touching a shortcode? Magic Link adds a Magic Link Login Form block to the WordPress block editor. Add it to any page or post, set the options in the sidebar, and you have a working login form — no shortcode, no code. The block is free.
What the Magic Link Login Form block does
The Magic Link Login Form block renders a drop-in passwordless login form inside the block editor. Visitors enter their email address and receive a secure one-click sign-in link, so they log in without a password. You see the form while you build the page and set its options visually, instead of typing shortcode attributes.
Why use the block instead of the shortcode
The shortcode works, but the block is easier to live with:
- You see the form in place while you build the page, instead of previewing to check it.
- You choose options from a sidebar instead of remembering attribute names, so a typo cannot silently break the form.
- The next person who opens the page sees a clearly labelled block, not a bare
[magic_link_form]tag.
How to add the block
- Edit the page or post where you want the login form.
- Click the + button to add a block.
- Search for Magic Link Login Form and select it.
- With the block selected, set the options in the sidebar on the right.
- Update or publish the page.
The block sits in the Widgets category and uses a padlock icon, so it is easy to spot in the inserter. It also supports wide and full alignment in themes that support those widths.
Block options
| Option | What it does |
|---|---|
| Allow registration | Lets a visitor whose email is not yet registered receive a link and create an account. Off by default. |
| Redirect to | The URL a visitor lands on after logging in through this form. Leave empty to use your global setting under Magic Link → Settings → General. |
| Button label | The text shown on the submit button. Leave empty to use the default. |
Where to use it
- A dedicated Login page in your main menu.
- A members-only landing page, above content that requires an account.
- A checkout or booking page, so returning customers can sign in without hunting for a password.
Block or shortcode?
Both produce the same form, and the login itself works identically whichever you choose. Use the block for pages and posts built in the block editor — it is easier to set up and clearer for the next editor. Use the shortcode for widgets, page builders, or theme templates that do not use the block editor.
Conclusion
The Magic Link Login Form block puts a passwordless login form on any page in a few clicks, with no code and no shortcode to remember. Once it is live, set a sensible link lifespan under Magic Link expiry settings and decide where users land with redirect after login.
FAQs
How do I add a Magic Link login form without a shortcode?
Edit a page or post in the WordPress block editor, click the + inserter, search for Magic Link Login Form, and add the block. Set the options in the right-hand sidebar and publish. The block renders a passwordless login form with no shortcode or code required.
Is the Magic Link Login Form block free?
Yes. The Magic Link Login Form block is part of the free Magic Link plugin. You can add it to any page or post and use its options without a PRO license.
Where do I find the block in the editor?
The block is named Magic Link Login Form and lives in the Widgets category with a padlock icon. Click the + button in the editor, type "Magic Link" in the search box, and select it. If it does not appear, confirm the Magic Link plugin is active.
Can the block redirect users after they log in?
The block has a Redirect to option for the destination URL after login. Leave it empty to fall back to your global login redirect under Magic Link → Settings → General. For site-wide and role-based redirect control, see redirect after Magic Link login.
Should I use the block or the shortcode?
Use the block when you are working in the block editor — it is easier to configure and clearer for the next editor. Use the shortcode for widgets, page builders, or theme templates that do not support blocks. Both render the same passwordless login form.