michaelclaesson / easy-quicklinks
WordPress plugin that adds support for top level quick link redirect in the post quick edit.
Package info
github.com/michaelclaesson/easy-quicklinks
Type:wordpress-plugin
pkg:composer/michaelclaesson/easy-quicklinks
Requires
- php: >=8.3
README
A WordPress plugin that lets editors assign short, top-level redirect slugs to pages directly from the post quick edit panel.
How it works
A quick link is a short, memorable path (e.g. /testskolan) that redirects visitors to an existing page regardless of where that page lives in the page hierarchy. The redirect is a 301 Permanent Redirect.
- A new Quick Link column appears in the Pages list.
- Editors set or clear the slug via the built-in Quick Edit panel.
- On the frontend, any matching top-level request that would otherwise produce a 404 is silently redirected to the target page.
- WordPress's slug uniqueness logic is extended so that no page can claim a permalink slug already in use as a quick link.
Requirements
| Requirement | Version |
|---|---|
| WordPress | 6.4 or later |
| PHP | 8.3 or later |
Installation
- Upload the
easy-quicklinksfolder towp-content/plugins/. - Activate the plugin via Plugins → Installed Plugins.
- No further configuration is required.
Usage
- Go to Pages in the WordPress admin.
- Hover over a page and click Quick Edit.
- Enter a slug in the Quick Link field (lowercase letters and dashes only, e.g.
testskolan). - Click Update.
The quick link is immediately live. Visiting https://example.com/testskolan will redirect to the target page.
To remove a quick link, open Quick Edit and clear the field, then click Update.
Slug format
Quick link slugs must match the pattern [a-z][a-z-]* — they start with a lowercase letter and contain only lowercase letters and dashes. No numbers, no uppercase, no special characters.
Conflict prevention
The plugin registers a filter on wp_unique_post_slug so that WordPress will never assign a page a permalink slug that is already claimed by a quick link belonging to another page. If a conflict is detected, WordPress appends a numeric suffix to the new page's slug instead.
Integrations
- Nested Pages — the quick link field is available in Nested Pages quick edit, uses the same validation as the built-in WordPress quick edit, and prevents duplicate quick links or conflicts with top-level page slugs.
Translations
The plugin ships with a Swedish (sv_SE) translation. Additional translations can be placed in languages/ following the standard WordPress naming convention (easy-quicklinks-{locale}.po/.mo).