This plugin allows you to make a WordPress page (or post or custom post type) link to a URL of your choosing, instead of its WordPress URL. It also will redirect people who go to the old (or „normal“) URL to the new one you’ve chosen.
- Set up navigational links to non-WordPress sections of your site or to off-site resources.
- Publish content on other blogs (or other services, like Medium) but have them show up in your WordPress posts stream. All you have to supply is a title and a URL. The post title will link to the content on the other site.
- For store operators, you can link to products on other retailer’s sites (maybe with an affiliate code) but have them show up like they’re products in your store.
- Create a „pretty URL“ for something complicated. Say you have https://example.com/crazy-store-url.cgi?search=productId&sourceJunk=cruft … just create a WordPress page called „My Store“ and use Page Links To to point it to the ugly URL. Give people the new URL: https://example.com/my-store/ and it will redirect them!
You can contribute (or report bugs) on Github.
page-links-tofolder to your
Activate the „Page Links To“ plugin.
Existing Content Usage:
Edit a page (or post or custom post type).
Below, find the Page Links To widget, select „A custom URL“, and add a URL of your choosing.
Optionally check the box to enable link opening in a new browser tab.
Save the page (or post or custom post type).
Done! Now that content will point to the URL that you chose. Also, if anyone had the old WordPress URL for that content, they will be redirected to the custom URL if they visit.
Creating New Page Links:
Click Pages > Add New Page Link.
Provide a title and a destination URL.
Optionally provide a custom slug, which will be used in creating a local redirect URL.
Just use „#“ as the link. That won’t go anywhere.
Can this be used to repoint categories to an arbitrary URL?
Not currently. Please contact me if you’re interested in that functionality.
If you want to link to a full URL, you must include the
Yes. Linking to
/my-photos.phpis a good idea, as it’ll still work if you move your site to a different domain.
Contributors & Developers
“Page Links To” is open source software. The following people have contributed to this plugin.Contributors
- Fix a bug that could cause new installs to constantly try to update the storage format.
- Bug fixes
- Add a SlotFill in the Block Editor, for extension.
- Fix New Tab support in Internet Explorer.
- Fix a small new tab JS error.
- Fix WordPress 5.2 Block Editor (plugin will NOT be in its own panel if you’re using WordPress 5.2).
- Move Block Editor UI into its own panel.
- Compatibility with Elementor.
- Allow posts to load in the customizer (used by some front-end editing plugins).
- Allow the „open in new tab“ functionality to be completely disabled with a filter.
- Make „open in new tab“ more reliable.
- Bug fixes
- Better compat with custom post types in the Block Editor
- Bug fixes
- Block Editor improvements
- Smaller build
- Customizer bug fix
- Block Editor bugfixes
- Support for the Block Editor (Gutenberg)
- Fixed a PHP warning caused by some themes
- Quick page link adding UI
- External link indicator
- Short URL copying
- Short URL display on edit screen
- Restore PHP 5.3 compatibility, broken in 2.11.0
- Code cleanup
- New screenshot and assets
- Fix readme.txt
- Fix bug in Internet Explorer
- Version bump
- Switch to ES6 and Babel from CoffeeScript
- Remove jQuery as front-end requirement
- Bump supported version
- Bump supported version
- Back out jQuery protection code that causes issues on some sites
- Added a Russian translation
- Maintain a reference to WordPress’ jQuery version
- Modernize build tools
- Fixed an issue with redirects that have
@in the URL
- Fixed issues with setting and displaying custom URLs for attachments
- Made relative URLs absolute in redirects
- Fixed a potential PHP warning
- Registered the metadata fields for better XML-RPC integration
- Add Hungarian translation.
- Only rely on an internal cache for
wp_list_pages()processing, and time-limit the cache.
- Work around some weird edge cases
- Restore WordPress 3.4.x functionality.
- Fix a redirection bug in 2.9
- Respect „open in new tab“ setting in more custom situations, like custom loops and widgets.
- Add unit tests
- Massive code refactoring
- Added translations for: Spanish, Catalan, French.
- Added translations for: Swedish, Hebrew.
- Fix an array bug
- Fix a PHP notice
- Use JS to open links in an external window, even outside of nav menus
- Completely revamped UI
- Several translations
- Proper linking for custom post types (insead of just a 301).
- Fixed a bug that prevented links from opening in a new window.
- Notifies people when they are editing content that uses this plugin.
- Removed the option to set redirection type. Always 301, now.
- Removed some PHP4 and WP 2.8 back compat stuff.
- Allow all show_ui post types to use the meta box.
- Introduce a filter so a plugin can remove a post type from the list.
- Target filtering for WordPress nav menus.
- Silence some PHP notices. Props Ross McKay, Bill Erickson.
- Fixed typo that was preventing 302 redirects from working. props Ryan Murphy.
- Fixed a random PHP notice
- Rewrote using Singleton best practices
- Fixed a regex bug that could break current menu highlighting. props skarab
- Fixed a bug with current menu item highlighting
- compatibility tweaks to interoperate with a few other plugins
- prompt http:// and auto-add it if a URL starts with „www.“
- WordPress MU compatibility for when
switch_to_blog()is used… it now uses
$blog_idto keep their caches from stomping on each other
- Allow one-character URLs so that things like „#“ (dummy link) are possible
- Fixed „open in new window“ functionality