This plugin allows you to make a WordPress page or post link to a URL of your choosing, instead of its WordPress page or post URL. It also will redirect people who go to the old (or “normal”) URL to the new one you’ve chosen.
This functionality is useful for setting up navigational links to non-WordPress sections of your site or to off-site resources.
You can also use it to create a hand-crafted menu that links to pages, posts, categories, or anything within your site.
You can contribute (or report bugs) on Github.
page-links-tofolder to your
Activate the “Page Links To” plugin in your WordPress administration interface.
Create (or edit) a page or a post to have a title of your choosing (leave the content blank).
Down below, in the advanced section, find the Page Links To widget, select “An alternate URL”, and add a URL of your choosing.
Optionally check the box to enable link opening in a new browser window.
Save the post or page.
Done! Now that post or page will point to the URL that you chose.
- How do I make it so that a page doesn’t link to anything? I’d like to use it as a dummy container.
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.
- My links are sending me to http://myblog.com/site-i-wanted-to-link-to.com … why?
If you want to link to a full URL, you must include the
- Can I link to relative URLs?
Yes. Linking to
/my-photos.phpis a good idea, as it’ll still work if you move your site to a different domain.
I have registered just to review this plugin. It works also for custom posts. Good job!
Very easy to use. Just miss the option to open links in a lightbox, in addition to the new tab/window option.
The Plugins helped me a lot.It makes everything quicker and easier .Saved a lots of trouble.
been using this plugin for ages. so useful.
I needed to hijack post titles and use them to link externally. This saved my bacon.
Contributors & Developers
“Page Links To” is open source software. The following people have contributed to this plugin.Contributors
“Page Links To” has been translated into these 19 locales: French, Japanese, German (Formal), Russian, Danish, Catalan, Portuguese, Brazilian Portuguese, Esperanto, Spanish, Italian, Hebrew, Swedish, Hungarian, Dutch, Czech, Norwegian (Bokmål), English (UK), English (Canada). Thank you to the translators for their contributions.
Interested in development?
- 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