Lets you make a WordPress post or page link to a URL of your choosing (on your site, or on another site), instead of its normal WordPress URL.
This plugin allows you to make a WordPress post or page 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.
This started as a fork of Mark Jacquiths Page Links to plugin. I forked it, to simplify the code base, better support gutenberg, and properly support redirects on password protected pages.
Common uses:
Like this plugin? Please consider leaving a 5-star review.
Love this plugin or want to help the LocalHero Project? Please consider making a donation.
Upload the lh-page-links-to
folder to your /wp-content/plugins/
directory.
Activate the “LH Page Links To” plugin.
Existing Content Usage:
Edit a post or page.
Below, find the Page Links To widget, select “A custom URL”, and add a URL of your choosing.
Save the post or page.
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.
Click Publish.
If you want to link to a full URL, you must include the http://
portion.
Yes. Linking to /my-content.php
is a good idea, as it will still work if you move your site to a different domain.
LH Page Links To, and all https://lhero.org plugins are made to WordPress standards. Therefore they should work with all well coded plugins and themes. However not all plugins and themes are well coded (and this includes many popular ones).
If something does not work properly, firstly deactivate ALL other plugins and switch to one of the themes that come with core, e.g. twentyfifteen, twentysixteen etc.
If the problem persists please leave a post in the support forum: https://wordpress.org/support/plugin/lh-page-links-to/ . I look there regularly and resolve most queries.
Look at the filter lh_page_links_to_get_applicable_post_types . It will enable you to modify the post type(s) this functionality is available with.
More bbroadly this plugin is about decisions not options so I won’t be adding settings but there is likely a filter to modify most behaviour, and it there is not I am happy to add one!
Please contact me for custom work and enhancements here: https://shawfactor.com/contact/
1.00 December 05, 2019
Initial release.
1.02 March 10, 2024
Many code improvements. Changed text domain to be wordpress compliant, added column for linked pages, added any filters