Page Links To
About
Page Links To is a plugin that 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, using a redirect style of your choosing (302 Moved Temporarily is standard, but you can enable 301 Moved Permanently redirects if you wish.)
For instance, say you have a photo gallery installed, but can’t be bothered to integrate it into WordPress. You’ll still probably want to have a link to it from your WordPress blog. With this plugin you can create a new page called “Photos,” and point it to the URL of your photo gallery. “Photos” will show up when you use wp_list_pages();, but instead of linking to the (blank) “Photos” page, it will link you your photo gallery!
Another usage scenario is that you have content that was on a post, and want to move it to a page. You could redirect the post to the new page. And if you use a 301 redirect, search engines will eventually “find” the new location and change their links.
This plugin uses only two simple MySQL queries, no matter how many total pages or Page Links To enabled pages you have, so you don’t have to worry about scalability.
Usage
To redirect a page or a post, scroll down to the “Page Links To” section on the edit screen for that entry and enter in the URL you want to redirect to. If you want this to be a permanent move, you can additionally check that box. And if you want the link to open in a new window, there’s a checkbox for that as well. After saving the entry, the redirect will be active!
Download
Instructions
- Upgrade to WordPress 2.7 or higher
- Upload the
page-links-tofolder to your/wp-content/plugins/directory - Activate the “Page Links To” plugin in your WordPress administration interface
- Create (or edit) a post or page to have a title of your choosing (leave the content blank — it won’t be used)
- Down below, find the Page Links To meta box and add the URL you’d like it to link to
- Optionally check one of the checkbox to enable
301redirects or opening in a new browser window - Publish the post/page
That’s it! Now, that post/page will link to the provided URL instead of its WordPress URL.
Possible Uses
- Linking to an on-site non-WordPress resource (e.g. photo gallery)
- Linking to an off-site resource (e.g. Flickr or Delicious page)
- Placing a link to a 2nd, 3rd, or nth level page on the top level (i.e. you might have
/archives/tags/, but want “tags” to show up on the top level) - Adding a link to your blog’s front page without having to modify your template and hack it in manually
Leave any bug reports or feature suggestions here in the comments.
Versions
- 1.8 Fixed a bug where blanking the URL field would just blank the custom field, instead of deleting it altogether
- 1.7 Dropping support for anything before 2.7 — later versions of 2.6.x might work, but I’m not promising anything! Fixed some bugs, and made the whole thing GUI-driven — no custom fields, even for
301redirects and opening the link in a new browser window! - 1.6 The meta boxes in version 1.5 didn’t work on WP 2.5 — my mistake. The plugin requires WP 2.6 now. Fixed a bug where multiple custom fields would be added (if you have dupes, just delete them)
- 1.5 Added WordPress 2.5 meta box — no more custom field-fu!
- 1.4 Fixes to tab highlighting
- 1.3 You can now specify a link target via
links_to_target, tab highlighting moved to WordPress 2.0 style - 1.2 If you link to an internal WordPress page, like a category, the menu item will get the
current_itemCSS class when you’re on that page - 1.1 Posts can have redirects, can specify redirect type (301/302),
get_permalink()is filtered for posts. - 1.0 Initial public release.


[...] "home" or whatever you want, it will only be a blank page anyway. Then use the "page links to" plugin to point it to your home page. This will add the page "Home" to your page [...]
[...] Mudah kan? Tertarik? Anda bisa mendownload pluginnya di SINI. [...]
[...] Page Links To – by far the simplest plugin on this list, This plugin allows you to create “pages” that link to something else. It’s the easiest way to add links to your main menu, without mucking around in code. It’s good for adding a link to an external photography portfolio, for example. You could also use it to link to sections of a page, rather than an entirely seperate page, which could be useful for linking to sections of a restaurant menu, or other small sections of a larger page. by Mark Jaquith [...]
Thanks so much for this plugin. I can’t believe how long I’ve been searching for something to do just this.
Can the php file be modified to open the external link in a new tab?
[...] Download “Page Links to” here [...]
[...] Page Links To – The menu at the top of the website plays a HUGE role in a CMS. This plugin lets you control your WordPress menu without messing with the WordPress code. Want to link externally? What about linking to a portion of a post instead of the entire post? [...]
Great plugin, but the current_item class doesn’t appear to be working. The version release notes say “…menu item will get the current_item CSS class…” but I’m not getting it for pages or categories. Am I missing something?
I’m using WP2.7.1, no other plugins, and an unedited Sandbox theme.
Thanks!
The plugin has worked well with Wordpress-MU. The only modification we needed to make so far was in the function txfx_filter_links_to_pages. There was no need to have the $post passed in as a second argument (the add_filter call to this function needed to have its last parameter of ‘2′ removed also). This was clashing with the current blog’s post ID’s if they happened to be the same ID. Instead we just declared global $post in the function and all was well.
Thanks
Correction to above…
The problem was with the cache, since the id’s were cached and an id could be the same across blogs. For anyone else attempting to shoehorn the plugin into WPMU, just be sure to prevent calls to the cache or instead modify what’s cached.
I use wp ver. 2.7.1 and this worked like a charm to link to other pages. However, inorder to get it to work properly I had to create new pages, as the url would get tacked on the end of my blog url if I tried to edit a page.
[...] the ‘/home/’. This issue we can easily solve with Page links to plugin. You can get it here or install it directly via ‘add new plugin’ [...]
[...] Page Links To – by far the simplest plugin on this list, This plugin allows you to create “pages” that link to something else. It’s the easiest way to add links to your main menu, without mucking around in code. It’s good for adding a link to an external photography portfolio, for example. You could also use it to link to sections of a page, rather than an entirely seperate page, which could be useful for linking to sections of a restaurant menu, or other small sections of a larger page. by Mark Jaquith [...]
[...] แต่คุณสามารถใช้ ปลั๊กอินเสริมที่ชื่อว่า ‘Page Link To’ ช่วยได้ โดยสามารถ Download ได้จาก http://txfx.net/code/wordpress/page-links-to/ [...]
Any solutions to the custom fields issue with 2.7? I.e.- Opening in another window?
Great plugin, I have used it to direct a post to one of my pages and it all works. However, the page in the Navbar does not become highlighted in the same way as if I had clicked on it – is there a way to mimic this?
Just wondering how to implement the opening of links in a new window. help would me much appreciated
[...] Page Links To is used to redirect certain older posts or pages to newer posts or pages. I use this for a few pages, though you’d never see it as everything happens behind the scenes. [...]
Very HELPFUL!!! Thanks a bunch
Just tried this and it works well, the only issue I have found is that if you remove the URL it doesn’t revert to pointing at the post page. I found commenting out the following on line 94:
&& isset( $_POST['txfx_links_to'] ) && strlen( $_POST['txfx_links_to'] ) > 7 )
sorted this. Was this intended functionality?
Andy
[...] Page Links To [...]
hi
great plugin!thanks a mil.
my questions is:
is it possible to do the same for a category.
i.e category links to
i would like the category to link to a new page once clicked?
thanks
[...] Page Links To « WordPress Plugin Page Links To is a plugin that allows you to make certain WordPress pages or posts link to a URL of your choosing, instead of their WordPress page or post URL. It also will redirect people who go to the old (or “normal”) URI to the new one, using a redirect style of your choosing (302 Moved Temporarily is standard, but you can enable 301 Moved Permanently redirects i f you wish.) (tags: plugins wordpress) [...]
Hello,
I would know how to target the links to a new window or tab. I tryed to write “links_to_target” in the meta box of the page but it doesn’t work.
Thank you.
[...] heldigvis ”page link to” plugin fra [...]
Great Plug-In, thanks.
I would like to make a feature request. I’d like to link to wildcards. In my specific case, I’d like a ‘Current Issue’ link to point users to the current date in the format /%year%/%month%/
Would you mind adding that feature to the plug-in? I would be happy to help and put in some programming work if you point me in the right direction…
Thanks again.
Hello, I am having a problem with the plugin. When I click the link of the page that I created, it puts the WP url and then the a url of the page I want it to redirect to. I’m curious what I did wrong. Thank you for any help.
aw man, got it. I forgot to put http:// in front.
Awesome plugin! Kudos to John (above) who pointed me in the direction for it! I have his same question:
Is there a way to get the links to open in new tabs or windows?
Hello there,
thanks for the great plugin! But i am asking myself if there is any way to get that link_to_target option working?
Greetings,
Malte
to get it to open in a new window add a custom field (besides the links_to one) called links_to_target and give it the value _new
I tried it that way a lot of times, but it is not working (its still opening in the same window). I’m using WordPress 2.7 .. is the plugin maybe noch compartible with this version?
[...] Page Links To – If you want to create a main navigation link that goes to another website, this is the easiest way to do that. [...]
I successfully downloaded the plugin and tested it on my nav bar and it worked perfectly!
I did that as a test and then I deleted the page that I added the page link to.
Now I get “page not found” on my main posts page. Is there any way to retrieve that section of my blog? All posts are intact in the admin panel, it just does not show in the blog main page.
Fantastic plug-in. As with many other comments, my main problem is that once when a page tab is clicked, it does not become active. The Home tab stays active. Has anybody figured out a fix for this? Thanks.
I continually get an error when I edit pages in admin. The error message runs vertically at a 3 character width and says:
Warning: Illegal offset type in /xxxxx/xxxxx/wp-content/plugins/page-links-to/page-links-to.php on line 106
any Idea what’s going on here?
Like I said, this happens every time I update a page with quick edit on the Page admin.
I just want to say thank you I have been looking everywhere for this and have been trying to edit my CSS code to no avail I think thats worth buying thank you.
Brilliant! Thanks so much!!
Here’s what many of us were looking for: to open a link in new window, create another custom field called links_to_target in “Add Custom Field” and in the value type _blank.
@ Arnod P:
Thats not working for me..
i second mikes question:
pages correctly get the current_page class,
but when i link to a category(archive) it does not appear as current_item…
also using wp 2.7.1
any hints?
greetz D
i just installed this plugin but nothing happened..i am a newbie and unable to activate my external links
The custom field links_to_target with _blank doesn’t work on WP 2.7.1. Any ideas if there will be an update? I don’t really want to go back to WP 2.6.
cheers
Ditto, issues with links_to_target on WP 2.7.1.
Thanks for the fantastic plugin, though! This is so needed in the core…
[...] Page Links To [...]
[...] Page Links To maakt het mogelijk dat je eeen menu knop maakt naar een onderdeel buiten je WordPress site. Denk [...]
I’ve updated the plugin! Check out version 1.7 and see if it fixes your issues (note: WP 2.7+ recommended — it may work with 2.6.5, but I’m not promising anything!)
Hi Mark,
Thanks for your work with the plug-in but unfortunately it’s still not opening in a new window for posts. Any ideas?
Thanks
Greg
I upgraded from Page Links To 1.6 to 1.7 and I cannot anymore to delete link from page. I want to restore page to default wordpress link and after I press Update Page nothing happen.
Mark, thank you! The opening in a new window thing seems to work now in Chrome, FF and IE. Thank you!
I too am running into the problem @ultras described, though – I can’t delete the link out of the custom field – it keeps coming back after I save the page. Not a huge deal as I can obviously create a new page and delete the old one, I just thought you’d like to know.
Thanks very much for your wonderful plugin!!
I’ve used this plugin successfully in the past, but with the latest build of WP (Version 2.7.1) and the Page Links To meta box is not appearing on the Page edit interface…not sure what is happening.
Can I add this key to Custom Fields manually?
Very much useful plugins. Have been searching for this a long time…. Thanks…:)
[...] Akismet All in One SEO Pack Audio player Featured Content Gallery Google XML Sitemaps Improved Include Page MapPress Easy Google Maps NextGEN Gallery Page Links To [...]
Can anyone help me out? I’ve tried version 1.7 and 1.8 and can’t get posts to open in a new window, pages are fine – I am ticking the box. I’ve tried the custom field links_to_target _blank and it’s still not working.
Any help would be MUCH appreciated I’ve been stuck on this for ages.
Great plugin! But, having same problem with link not opening in a new window when I check the option box or try the custom field. Using v1.8. Any help would be greatly appreciated. =)
[...] for this is to have all traffic going to http://www.articulatedsky.com, automatically diverted (via the Page Links To plugin) to the location of the page to create a fake front page. The blog link on this page will seem like [...]
Hi Mark!
There also seems to be a bug with the redirect type.
No matter how I set the checkbox, the page will be 302-Temporarily-redirected.
I believe the if-test for $redirect_type is never fulfilled, because $redirect_type is an empty string, because the custom field does not exist (it gets deleted when the checkbox is not set).
Tobias
Hey, GREAT plugin! I’m kind of new to WP, and I just spent about an hour troubleshooting how to make the link not include the Wordpress URL. I eventually figured it out! Thanks!
Hi,
All right ,this is what i understand:
1,Upgrade to WordPress 2.7 or higher
From this point i understand nothing:(((
You said:
“Upload the page-links-to folder to your /wp-content/plugins/ directory”
ok but how can i do that???????????????
thanks
Any updates on the new window option not working?
Fatal error: Cannot redeclare txfx_get_page_links_to_meta() (previously declared in /home/actionen/public_html/doitscience/wp-content/plugins/page-links-to/page-links-to.php:29) in /home/actionen/public_html/doitscience/wp-content/plugins/page-links-to/page-links-to.php on line 49
Getting This ERror when i try accessing it via
http://doitscience.com/wp-admin/options-general.php?page=page-links-to/page-links-to.php as it is not appearing in the menu.
Great plugin – but like the rest dying to see the target new window function working. I back-revved to v. 1.6 and tried the manual function there, but it’s still not doing the trick under WP 2.7.1
thanks for the great work! looking forward to an update!
[...] 2009.01.05 要讓網誌上方的「分頁」變成超連結的方法,可以採用 Page Links To 這個外掛是個絕佳的選擇,看過許多 WordPress [...]
ww
hi,
wenn ich den Haken “öffne in einem neuen Fenster” setze, passiert nichts!?
Kann ich auch den Link in meinem Fenster öffnen lassen?
dvzky349vbch6ymm
讓
[...] Page Links To 1.8 NEW! 不知道網友們有沒有注意到網頁上方的「我的相簿」?那個連結是往picasa的,這個外掛的功能就是這樣! [...]
[...] page Links To پستها و صفحات را خیلیآسان، به آدرس موردنظرتان Redirect کنید، موقت و دائم. خارج از سیستم وردپرس، یک گالری ساختهاید اما تمایل دارید گالری را با وبلاگ، یکپارچهکنید. صفحهای میسازید، برایشاسم انتخاب میکنید، پلاگین بهشما امکانمیدهد، صفحهگالری خارج از وردپرس را جزو صفحات وبلاگ در دسترس بگذارید. [...]
If anyone comes up with a solution to how to open the url in a new window/tab, please post it here.
I’ve noticed I’m not the only one who is hoping for something like this.
Does anyone have any other solutions that they would recommend besides this plugin to achieve this objective?
Thanks!
Installing Plugin: Page Links To 1.8
Downloading plugin package from http://downloads.wordpress.org/plugin/page-links-to.zip
Unpacking the plugin package
Fatal error: Cannot redeclare class pclzip in /homepages/24/d197723901/htdocs/trainers/wp-admin/includes/class-pclzip.php on line 171
[...] and install Page-Links-To plug in to your WordPress application: 1). Download page-links-to from http://txfx.net/code/wordpress/page-links-to/ 2). Follow the instructions to install. 3). From the admin panel (/wp-admin/), make a new page with [...]
[...] Page Link Manager [...]
[...] Page Links To:將上方分頁按鈕加入直LINK網址的功能,你可以直接指定分頁可直接連結到哪個外部網頁。 [...]
[...] 4. Page Links To [...]
[...] เพื่อความสะดวกสบายในการทำ page link คือ Page Links To ความสามารถของ Page Links To Page Links To [...]
I just installed your plugin and I must confess, I really love it. My theme did not come with a “home” link so your plugin gave a fast easy option.
[...] plugin de wordpress Page-links-to en lugar del script redirect.php (ahora hay que copiarlo por cada [...]
It’d be nice to be able to edit the title attribute of the link.
Thanks for your plugin!
[...] Install and activate Page Links to [...]
[...] Install and activate “Page Links To”: txfx.net/code/wordpress/page-links-to [...]
hi
I emailed you but no reply… I installed the plugin and created a page linking to http://www.hostscorpion.com/advertising.jsp
but gets nothing found error… plz help me plz
thanks
Nope, not working for me on WP 2.7
I’ll have to try something else.
I have installed the plugin and it works perfect. Only, i have checked the new window option and the post opened in the same window.
Do i something wrong
With kindly regards,
Albert
Best plugin ever!
great plug-in. is there a way to revise the existing post id (e.g., by “sha1″ing the post id)? i need to do it for posts in certain categories.
thanks.
Hi .. this plugin makes all my respond links go to the link I choose .. example
http://url.com/#respond .. instead of making it an individual archive on my site so users can comment. How do I make this change?
Thanks
Tired of a competitor’s site? Hinder the enemy? Fed pioneers or copywriters?
Kill their sites! How? We will help you in this!
Obstructions of any site, portal, shop!
Different types of attacks: Date-attack, Trash, Attack, Attack, etc. Intellectual
You can work on schedule, as well as the simultaneous attack of several sites.
On average the data, ordered the site falls within 5 minutes after the start. As a demonstration of our capabilities, allows screening.
Our prices
24 hours of attack – $ 70
12 hours of the attack – $ 50
1 hour attack – $ 25
Contact via ICQ: 588 666 582
[...] Page Links To – 本文最简单易用的插件。该插件允许你通过创建“页面”来链接到任何你想要的位置。不必修改代码就能轻松为主菜单添加链接。例如:链接到您的外部相册。您还能通过它创建链接到页面的指定位置,对于制作饭店菜单或大幅页面的小区域链接将非常有用。作者: Mark Jaquith [...]
[...] běží na vlastním engine (CPG) a má vlastní adresu. Wordpress to neumí, ale našel jsem Page links to plugin, který umožňuje při založení nové stránky definovat url, na které bude stánka odkazovat. [...]
[...] site to appear. Google XML Sitemaps – to inform search engines of new updates to your blog. Page Links To – allowing you to point any posts and pages to a URL of your choosing, this is a must have if [...]
[...] when I came across this plugin that does exactly what I want. It is called ‘Page Links to‘ plugin. Now at the bottom of the page there is the ‘Page Links to’ option. Works [...]
[...] Page Links To – This plugin allows you to point a post or page to any URL you want. Very useful if you want a WordPress Page to link an external URL. [...]
great plugin i must say
but currently im facing another problem
when i create categories, i wanna link the categories to another page?
can this be done with page links to?
or do you know any plugin that can achieve it?
thanks
hope to see your answer in my inbox soon
thanks again
What a godsend! I was rackin’ my head over trying to modify the page code to call in the page id’s. I wanted to replace category post links with page links. Your plug-in rescued my insanity. Thank you!! – (site url is temp until site goes live.)
Hi, great plugin, used it before…. but no links opening in a new window on the latest version, with 2.8 anyhow.
Any chance of a update on this or anyone with a mod that’ll do it?
Thanks for all your work on this.
[...] Page Links To [...]
With Wordpress 2.8 the open in new window box option is not appearing. has this been resolved??