• Stars
    star
    106
  • Rank 325,871 (Top 7 %)
  • Language
    PHP
  • License
    GNU General Publi...
  • Created almost 12 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

#WordPressPlugin: Lets you make a WordPress page (or other content type) link to an external URL of your choosing, instead of its WordPress URL.

Page Links To

Build Status

Contributors: markjaquith
Donate link: https://txfx.net/wordpress-plugins/donate
Tags: page, redirect, link, external link, repoint
Requires at least: 4.8
Tested up to: 5.8
Stable tag: 3.3.6

Lets you make a WordPress page (or port or other content type) link to a URL of your choosing (on your site, or on another site), instead of its normal WordPress URL.

Description

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.

Common uses:

  • 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!

Installation

  1. Upload the page-links-to folder to your /wp-content/plugins/ directory.

  2. Activate the "Page Links To" plugin.

Existing Content Usage:

  1. Edit a page (or post or custom post type).

  2. Below, find the Page Links To widget, select "A custom URL", and add a URL of your choosing.

  3. Optionally check the box to enable link opening in a new browser tab.

  4. Save the page (or post or custom post type).

  5. 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:

  1. Click Pages > Add New Page Link.

  2. Provide a title and a destination URL.

  3. Optionally provide a custom slug, which will be used in creating a local redirect URL.

  4. Click Publish.

Screenshots

  1. The Page Links To meta box in action
  2. The quick Add Page Link dialog.

Frequently Asked Questions

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 http:// portion.

Can I link to relative URLs for URLs on the same domain?

Yes. Linking to /my-photos.php is a good idea, as it'll still work if you move your site to a different domain.

Contribute

You can contribute (or report bugs) on Github.

Changelog

3.3.5

  • Fix a bug that could cause new installs to constantly try to update the storage format.

3.3.4

  • Bug fixes

3.3.3

  • Add a SlotFill in the Block Editor, for extension.
  • Fix New Tab support in Internet Explorer.

3.3.2

  • Fix a small new tab JS error.

3.3.1

  • Fix WordPress 5.2 Block Editor (plugin will NOT be in its own panel if you're using WordPress 5.2).

3.3.0

  • 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.

3.2.2

  • Bug fixes
  • Better compat with custom post types in the Block Editor

3.2.1

  • Bug fixes

3.2.0

  • Block Editor improvements
  • Smaller build

3.1.2

  • Customizer bug fix

3.1.1

  • Block Editor bugfixes

3.1.0

  • Support for the Block Editor (Gutenberg)

3.0.1

  • Fixed a PHP warning caused by some themes

3.0.0

  • Quick page link adding UI
  • External link indicator
  • Short URL copying
  • Short URL display on edit screen

2.11.2

  • Newsletter

2.11.1

  • Restore PHP 5.3 compatibility, broken in 2.11.0

2.11.0

  • Code cleanup

2.10.4

  • New screenshot and assets

2.10.3

  • Fix readme.txt

2.10.2

  • Fix bug in Internet Explorer

2.10.1

  • Version bump

2.10.0

  • Switch to ES6 and Babel from CoffeeScript
  • Remove jQuery as front-end requirement
  • Bump supported version

2.9.10

  • Bump supported version

2.9.9

  • Back out jQuery protection code that causes issues on some sites

2.9.8

  • Added a Russian translation
  • Maintain a reference to WordPress' jQuery version
  • Modernize build tools

2.9.6

  • Fixed an issue with redirects that have @ in the URL
  • Fixed issues with setting and displaying custom URLs for attachments

2.9.5

  • Made relative URLs absolute in redirects
  • Fixed a potential PHP warning
  • Registered the metadata fields for better XML-RPC integration

2.9.4

  • Add Hungarian translation.

2.9.3

  • Only rely on an internal cache for wp_list_pages() processing, and time-limit the cache.
  • Work around some weird edge cases

2.9.2

  • Restore WordPress 3.4.x functionality.

2.9.1

  • Fix a redirection bug in 2.9

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.

2.8

  • Added translations for: Swedish, Hebrew.

2.7.1

  • Fix an array bug

2.7

  • Fix a PHP notice
  • Use JS to open links in an external window, even outside of nav menus
  • Completely revamped UI
  • Several translations

2.6

  • 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.

2.5

  • 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.

2.4.1

  • Fixed typo that was preventing 302 redirects from working. props Ryan Murphy.
  • Fixed a random PHP notice

2.4

  • Rewrote using Singleton best practices
  • Fixed a regex bug that could break current menu highlighting. props skarab

2.3

  • Fixed a bug with current menu item highlighting

2.2

  • Cleanup
  • compatibility tweaks to interoperate with a few other plugins
  • prompt http:// and auto-add it if a URL starts with "www."

2.1

  • WordPress MU compatibility for when switch_to_blog() is used... it now uses $blog_id to keep their caches from stomping on each other

2.0

  • Allow one-character URLs so that things like "#" (dummy link) are possible

1.9

  • Fixed "open in new window" functionality

More Repositories

1

WordPress-Skeleton

Basic layout of a WordPress Git repository. I use this as a base when creating a new repo.
PHP
1,836
star
2

WP-Stack

A toolkit for creating professional WordPress deployments
PHP
1,113
star
3

WP-TLC-Transients

PHP
338
star
4

WordPress

This is legacy. Use github.com/WordPress/WordPress/ instead!
PHP
229
star
5

WordPress-Plugin-Directory-Slurper

Slurps down every stable version of every plugin in the WordPress plugin directory.
PHP
163
star
6

clerk-sveltekit

Clerk adapter for SvelteKit
Svelte
137
star
7

encute

WordPress plugin for fluent management of scripts and styles.
PHP
107
star
8

wp-help

#WordPressPlugin: Site operators can create detailed, hierarchical documentation for the site's authors, editors, and contributors, viewable in the WordPress admin
PHP
104
star
9

cache-buddy

#WordPressPlugin: makes more WordPress pages cacheable
PHP
78
star
10

BetterBible

The Bible has some issues. Let's make it better.
72
star
11

Showdown

Example WordPress plugin created for WordCamp San Francisco 2014, to show off wp.Backbone.View
PHP
52
star
12

WordPress-Plugin-Readme-Parser

PHP
42
star
13

gifdrop

#WordPressPlugin GIF repository plugin for WordPress
PHP
36
star
14

Localdev

Simple Ruby command line utility to point domains to your localhost
Ruby
34
star
15

markdown-on-save

#WordPressPlugin: allows you to author posts in Markdown, but stores rendered HTML in post_content so you can deactivate with impunity.
PHP
29
star
16

slug-control

#WordPressPlugin: Helps you craft amazing post URL slugs, for that hand-crafted URL feel.
PHP
27
star
17

i-make-plugins

#WordPressPlugin: For plugin authors. Showcase your plugins on your WordPress site. You only update your readme.txt files!
PHP
19
star
18

WordPress-Jetpack-Valet-Driver

A Laravel Valet driver that routes missing images to your public site, via Jetpack's Site Accelerator (formerly "Photon") CDN.
PHP
18
star
19

wpsql

DEPRECATED. Use WP-CLI instead! Old: Bash script that, given a wp-config.php file, opens a MySQL session to the DB server described within
17
star
20

scheduled-post-guardian

#WordPressPlugin: Watches over scheduled posts, so that no funny business interferes with their mission
PHP
16
star
21

WordPress-Plugin-Installer

PHP
16
star
22

nice-search

#WordPressPlugin: Makes search URLs pretty
PHP
15
star
23

login-logo

#WordPressPlugin: Customize the logo on the WP login screen by simply dropping a file named login-logo.png into your WP content directory. CSS is automatic!
PHP
15
star
24

wp-feature-better-passwords

PHP
11
star
25

WPPlugin

Command line tool for updating and managing WordPress plugins
Ruby
11
star
26

gist-indexer

#INACTIVE: Use swdyh/gisty instead!
PHP
10
star
27

workerbee

A friendly tool for composing Cloudflare Workers
TypeScript
9
star
28

cmdy

Your friendly command manager
Shell
7
star
29

BlockStub

PHP
6
star
30

BashGato

Control Elgato lights with a Bash script
Shell
6
star
31

categorized

#WordPressPlugin: Unchecks the default post category when you select a non-default category
PHP
5
star
32

stabletweet

JavaScript
5
star
33

hotfix

Provides unofficial fixes for selected WordPress bugs, so you don't have to wait for the next WordPress core release.
PHP
5
star
34

Alfred-Silent-Mention

Alfred 4 Workflow to silently type @usernames, domains.com, or #hashtags without them being linked or parsed
3
star
35

sveltekit-playwright-fetch-mock

Tools for mocking SSR fetch() requests in SvelteKit for use in Playwright
TypeScript
2
star
36

WordPress-Skeleton-Updater

PHP
2
star
37

switch-controller

PHP
2
star
38

p3-neutraliser

WordPress plugin which prevent's Pipdig's P3 plugin from updating or requesting malicious URLs
PHP
2
star
39

grunt-wp-simple-plugin

Simple WordPress Plugin Template
CoffeeScript
2
star
40

dieulot.github.io

instantclick.io
JavaScript
1
star
41

grunt-puphpet-site

Initialize a PuPHPet site with grunt-init
Ruby
1
star
42

Wherewithal

Given constraints, parses a string of conditions into a valid MySQL WHERE clause
PHP
1
star
43

BigBrain

A familiar game to help you, uh, master your... mind.
Svelte
1
star
44

prefsync

Syncs macOS preferences
Shell
1
star