Everyday Use
How Can I Add A Passwordless Login Form Without Using A Shortcode?
Quick Answer
Magic Link adds a Magic Link Login Form block to the WordPress block editor. Add it to any page or post, set a few options in the sidebar, and you have a working passwordless login form. No shortcode, no code.
This is free.
Why This Helps
Shortcodes work, but they are hard to live with:
- You cannot see what the form looks like until you preview the page.
- The options are typed by hand, so a small typo silently breaks the form.
- Anyone editing the page later sees
[magic_link_form]and has no idea what it does or what it accepts.
The block solves all three. You see the form in place while you build the page, you choose the options from a sidebar instead of remembering parameter names, and the next person who opens that page sees a clearly labelled block.
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.
Block Options
| Option | What it does |
|---|---|
| Allow registration | Lets a visitor whose email is not yet registered receive a link and get an account. Off by default. |
| Redirect to | Where the visitor lands after logging in through this form. Leave empty to use your global setting under Magic Link -> Settings -> General. |
| Button label | The text on the submit button. Leave empty to use the default. |
The block also supports wide and full alignment, so it can stretch across the page in themes that support those widths.
Where To Use It
- A dedicated Login page in your main menu.
- A members-only landing page, above the 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. Use whichever fits where you are working:
- Block — for pages and posts built in the block editor. Easier to set up and easier for the next person to understand.
- Shortcode — for widgets, page builders, or theme templates that do not use the block editor. See Add a login form with a shortcode.
Choosing one over the other changes nothing about how the login itself works.