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

  1. Upgrade to WordPress 2.7 or higher
  2. Upload the page-links-to folder to your /wp-content/plugins/ directory
  3. Activate the “Page Links To” plugin in your WordPress administration interface
  4. Create (or edit) a post or page to have a title of your choosing (leave the content blank — it won’t be used)
  5. Down below, find the Page Links To meta box and add the URL you’d like it to link to
  6. Optionally check one of the checkbox to enable 301 redirects or opening in a new browser window
  7. 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 301 redirects 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_item CSS 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.

I’ve spent a lot of time writing this code and supporting it. If you derive some benefit from this code, please consider showing your gratitute in a more tangible
way. Thanks!

I have received $0 this month for my coding efforts.

Donate with PayPalAmazon.com Wishlist


696 Responses to “Page Links To”

  1. Plugins/Theme Cleaker 2.0 Theme WeatherIcon Bad Behavior Spam Karma Page Links To Vipers Video Quicktags

  2. Britneyvgkzd says:

    Very nice! I have some LJ with news, check this out:
    Newest news
    Check this out
    livejournal

  3. Britneydtwub says:

    Very nice! I have some LJ with news, check this out:
    Newest news
    Check this out
    livejournal

  4. Boyd says:

    Thanks for such an awesome plugin!!! Only question i have is once i make a new page WP creates a new tab, how do i shift the tabs around without del the page and remaking them them in the order i would like them to be?

  5. Mosye says:

    Boyd: If I’ve understood your comment correctly it should be a matter of reordering the pages. I’m not too familiar with Wordpress but I’m not sure if this can be done easily without a plugin. To do it ‘manually’ at least – on each page, somewhere on the bottom right there is a ‘page order’ box. I use that but there must be a better way :)

  6. Tiwaz Blog says:

    Recent Posts TEST – Page link

  7. [...] Wenn man im Wordpress-Backend eine statische Seite anlegt, diese aber extern verlinken möchte, dann geht das ganz einfach mit diesem Plugin. [...]

  8. [...] schreiben” und verwende dabei dann das Attribut links_to welches mir vom WP-Plugin Page Links to zur Verfügung gestellt [...]

  9. Page Links To 1.4 Sidebar Widgets 1.2.1.20070210b Time Zone 2.1

  10. Jenn says:

    Thanks so much! Great plugin and much better than hardcoding everything :)

  11. [...] Page Links To è un semplice plugin che permette di collegare pagine a siti esterni al vostro blog. [...]

  12. [...] have installed the Page Links To plugin to allow redirection of published pages to external pages or websites. Note, there is a bug when [...]

  13. Kurt says:

    awsome plugin keep up the good work

  14. Lynn says:

    This is phenomenally easy. Thank you for sparing me convoluted php rewrites. I have a phpLD on the same server as my artsmontana blog and I wanted the directory to appear in the main menu and the sidebar where wp_list_pages does its stuff. I figured a custom field on the old WP page where I started the directory (ugh) would do the work. But then what? Then Links To, that’s what. Feenominal, too, since I made a modest donation. Wish I could have done 5 times that. Not only is the solution elegant, your instructions are, too.

  15. Lynn says:

    Boyd,

    RE WordPress page ordering:
    Set the page order for each page in Manage > Pages. Then edit wp_list_pages to make it use the ordering you’ve established. If you are ordering the pages for a main menu, put the wp_list_page edit in header.php.
    This code following my blog banner div did the trick:

    I let the sidebar instance of wp_list_pages default to alphabetical ordering, but you can change the code there, too. You can call this list anything; the example uses “PAGES”:

      ‘ . __(’PAGES’) . ” ); ?>

    All of this is swell if you don’t have a lot of pages to go and set PAGE ORDER for. (Note that you don’t have to delete pages and recreate them to get the right ordering of IDs; this is something you do on each page in the PAGE ORDER box at bottom right when you edit a page.)

  16. Lynn says:

    Darn.
    I was assuming I was in text editing mode. But I see my post is messed up and doesn’t show the code. I’m new at this blog commenting thing. Maybe it was the php (for security reasons?) that messed things up.

    Apologies to all readers and our blog host for the wasted space.

    Look at this WordPress Codex page. All will be answered there. (And I hope this HTML word here.)

    Red in the face.

  17. Serena says:

    Hi,

    I’m really new at this…
    On my site I want the Flickr page to open IN the blog and not in a new page. I already managed to make a link, but it opens in an new page.
    What am I doing wrong???

  18. [...] j’ai utilisé le plugin “Page Links To” pour faire un lien directement dans l’onglet supérieur du blog pour rediriger [...]

  19. [...] Page Links To [ Tempus Fugit | TxFx.net ] Plugin Wordpress qui permet de faire pointer des pages vers des url (tags: wordpress plugin blog) [...]

  20. Tim says:

    They really should have included something like this in Wordpress as standard. Thank you so much =)

    Regards Tim, from Sydney Australia

  21. Brandon says:

    I have used this plugin on a few sites in the past and it’s excellent. On a recent site I have been working on I thought about using it to force specific pages through the site’s SSL certificate. So, using an absolute https:// address on specific pages. It doesn’t work, however, and it’s not obvious to me why this is. Any thoughts on this would be greatly appreciated.

    Cheers,
    Brandon

  22. [...] a plugin which will allow me to create a page with a link inside. The plugin is available here http://txfx.net/code/wordpress/page-links-to/ and its very easy to work it. First download it Then unpack it with winrar Next upload it to [...]

  23. LeegaR Blog says:

    utilidad, recomendada, y muy util si lo integran con los servicios de Google Sitemaps… Lo que hace es generar un SiteMap de nuestro blog para que a Google le sea mas facil indexarnos… No Duplicate Comments: Evita el doble-posteo… Simple… Page Links To: Esto si que lo estaba necesitando y me es util… Sirve para redireccionar una página del Blog a una URL… Lo uso en el botón “Web” de arriba… Show Top Commentators: Gracias Marlex… Es lo que ven a su derecha, el cuadrito de los que más

  24. [...] finally figured out how to get a proper link to the gallery using the nifty Page Links To wordpress [...]

  25. [...] use the "Page Links To" plugin to do this.See: http://txfx.net/code/wordpress/page-links-to/Love the theme, Chris… nrg Offline [...]

  26. [...] Page Links To: Plugin that allows you to create pages that redirect to another url. This allows you to use the wordpress page navigation in your theme while pointing to content that is outside of wordpress. [...]

  27. Michael says:

    Fantastic plugin, can’t believe something like this isn’t standard in WP. I’d like to echo Serena’s question above, is there any way for the linked page to open up in the content pane of my site, so that the navbar, header, and footer are still visible?

    Thanks,
    Michael

  28. Illvibe says:

    Wonderful plugin. Is there any way of making the links relative? It’s just when I build a WP site on my local computer, I’ve got to go through and change all the ‘links_to’ links when the site goes live because all the urls are different.

  29. s Bessere, oder muss ich selber ran? myGallery Schönes Gallery Plugin mit dem man bequem Bilder hochladen und zu einer Galerie zusammenstellen. Entweder per .zip-Datei, einzelner Bilder oder auf dem Server vorhandener Ordner. Page Links To Links in der Sitebar direkt auf eine externe Seite lenken. WeatherIcon Wie der Name schon sagt. Wetterdaten in der Sitebar einblenden. WP Shopping Cart (warte auf das Final Release!) Schönes einfaches Shopsystem

  30. [...] that I use the Page Links To plugin, which lets Wordpress pages become redirects to non wordpress pages. I use this for some of [...]

  31. [...] Page Links To faz uso daquele campo que você nunca lembra que existe no painel do Wordpress, o Custom [...]

  32. fixas, coisa que queria fazer há tempos, mas ia adiando por temer a perda das visitas geradas por eles. Resolvi a questão com um plugin pequeno e simples de utilizar, apesar de dar algum trabalho quando se tem muitos artigos para modificar. O Page Links To faz uso daquele campo que você nunca lembra que existe no painel do Wordpress, o Custom Fields. A parte do plugin é a mais fácil, basta descompactar o arquivo e mandá-lo para a pasta plugins, ativá-lo e era isso.

  33. [...] Page links to – As far as I’m using this plugin, this is a great way of creating a direct link to another site through the main menu. For example, see the “e-Legal Forum” page in the header? Try clicking it. I understand it can also be used for a post, instead of a page. If you know of great K2-compatible plugins (where manual editing of codes is not needed), please let me know. This list will be updated from time to time. [...]

  34. Guybrush says:

    hi!

    thanks for the great plugin!!! i really needed that and didn´t came across the hardcoded thing.

    but one thing is left:
    how can i add a e.g. class=”thickbox” to the link so i can open it cia thickbox?
    would be great if you could help me out…

    cheer from austria
    guybrush

  35. Kurt says:

    I didnt even know this plugin existed! I was getting ready to take a machete to my blog’s code. Thanks

  36. [...] Learn more and download the Page Links To plugin at txfx.net >> [...]

  37. [...] I discovered the Page Links To plugin, it’s become one of the plugins that I use most on my sites, particularly those where [...]

  38. mi says:

    I don’t understand why it doesn’t work… I want a category to be in the pages … but.. i really just don’t know why. I tried doing as instructed. 4 times .. but the category page still won’t show up. :(

  39. [...] of the plugins still work without a hitch. These are Akismet (anti-spam), Page Links To (sets a “links_to” meta key with a URL value that will be be used when listing WP pages), [...]

  40. [...] Page_Links_to ist ein kleines, aber sehr praktisches Tool. Das Plugin sorgt dafür, dass ein Klick auf eine statische Seite auch zu einer beliebigen URL führen kann. Dies ist hilfreich, wenn man externe Seiten in die eigene Wordpressinstallation einfügen will. [...]

  41. Jens says:

    Strange… tried creating a page with link to myGallery2 but when activated AND adding custom key it constantly creates a draft post. What a pity :( Maybe its my themes fault: Intense.

  42. Jens says:

    I switched theme to WordPress default but with the same result…

  43. Jens says:

    After deactivating almost all my plug-ins I discovered Kiras post #260 about my problem above. Her workaround on the WordPress (!) bug, when creating pages which are then saved as draft posts, helped me.
    So thanks Kira and thanks Mark for making time easier, at least sometimes :)

  44. We(China) manufacture and export Aftermarket Auto Parts,Auto Parts,Stainless Steel (Seamless/Welded)Pipe(Tube),Door Hardware,Hydraulic Pressure,Industrial Fastener/Fastener(Standard part)…

  45. Craig says:

    Awesome plugin. Thanks!

    It would be nice if you put a blurb on ALL of the keys that can be used in the custom fields & how it is done. I had to search thru all your comments to find out how to use the link_to to open a _new window.

    Great tool!!

  46. Thank you very much for authoring this incredibly useful plugin. I have put it to good use, and appreciate your work very much!

  47. Ben says:

    I am unable to download the plugin. Is it available anywhere else?

  48. I’m trying to pull in a page from google finance as an integrated page into my main page by clicking on the Quote link.

    Per the instructions, I created a blank page QUOTE as a parent, then created a 2nd page (Quote Mot) with the links_to key and a value of http://finance.google.com/finance?q=MOT however when I press the Quote button on my main page it opens the 2nd page to an empty link.

    If a omit the 1st page and reference the link directly it opens in a new window.

    Is there a way to show the link_to page http://finance.google.com/finance?q=MOT in my blog, I knew that I used to be able to do this in my PHPNuke site with a little plug-in and was hoping to find something similar with this.

  49. [...] plugin Page Links To  permet de lier une catégorie à une page. Il suffit ensuite se choisir cette page comme page [...]

  50. $webpage says:

    t work for you, drop me a comment or an email.) Here’s a quick walk-through for anyone trying to do this (and, let’s face it, so I don’t forget how it works): The WPG2 plugin embeds Gallery in Wordpress. ThePage Links Toplugin lets me direct the “Photos” link right to my embedded Gallery instead of a Wordpress page. 1. In Gallery Site Admin, turn off the URL Rewrite module. I was using URL Rewrite to get pretty links, but it confuses WPG2. Unfortunately this

  51. joe says:

    Hi,

    is it possible to do something like:

    http://www.the-device.net/

    with this plugin…?

    thx for help

  52. sam says:

    Hi,

    i entered links_to_target and _new but the link is still opening in the same browser window?

    thx for help

  53. indir says:

    i entered links_to_target and _new but the link is still opening in the same browser window?

    thx for help

  54. youtube says:

    with this plugin…?

    thx for help

  55. indir says:

    Per the instructions, I created a blank page QUOTE as a parent, then created a 2nd page (Quote Mot) with the links_to key and a value of http://finance.google.com/finance?q=MOT however when I press the Quote button on my main page it opens the 2nd page to an empty link.

  56. yonja says:

    Thank you very much for authoring this incredibly useful plugin. I have put it to good use, and appreciate your work very much!

  57. [...] moves the position of the ’separator’ to after the title rather than before. – Plug-in: Page Links To Version: 1.4 Author: Mark Jaquith Desc:  Allows you to set a “links_to” meta key with a URI [...]

  58. Mickey says:

    I’m trying to use the plugin for my pages and I’m not sure how to implement the meta key:

    – Down below, add a meta key of “links_to” (without the quotes) and give a full URI as its value

    How do I get custom fields to show up like they do in posts? or is there something else I’m overlooking?

    Thanks

  59. [...] PAGE LINKS TO, versione 1.4, plugin per inserire links verso pagine esterne a WordPress; [...]

  60. [...] Page Links To Allows you to set up up navigational links in the NASA Navigation Bar to non-Wordpress sections of your website or to other websites. [Author Website] [...]

  61. Sloan says:

    I installed plaugin but where is the step 5 part where it says

    Down below, add a meta key of “links_to” (without the quotes) and give a full URI as its value.

    Where is the down below?

  62. Sloan says:

    Fantastic, I’ve figured it out. this plugin rocks. Thanks so much, I was a very frustrated noobe trying to figure this out. Thanks again

  63. [...] subdomains for the site – the forums, the gallery, etc. in my sidebar – ideally with my pages. The Page Links To plugin does the trick. You create a new blank page, and add a custom field containing the URL that [...]

  64. Consulta K2 says:

    [...] enocntre un plugin si a alguien le interesa esta acahttp://txfx.net/code/wordpress/page-links-to/ [...]

  65. TestBlog says:

    das die Mitte durch Punkte ersetzt und damit gekürzt dargestellt werden. Advanced TinyMCE Editor: Im Original-Editor von WP gibt es keine Möglichkeit Schriftarten u.ä. zu ändern. semmelstatz2: Damit man sieht wie begehrt die eigene Seite ist.Page Links To: Mit diesem Plugin kann man externe URLs als Seiten anlegen Ultimate Tag Warrior: Für jeden Artikel kann man Tags hinterlegen, die das Kategorisieren vereinfachen. Tag Cloud widget for UTW: Alle Tags werden als

  66. XirBIT Blog says:

    นำภาพวีดีโอคลิปจาก Youtube มาใส่ในเพจของเราได้ เพียงแค่ระบุ tags สั้น ๆ นิดเดียวเองครับPage Links toเป็นการใส่ลิงก์ให้กับ Page ไปยังที่ต่าง ๆ ตามที่เราต้องการ แทนที่จะเป็นลิงก์ภายใน Blog เช่น

  67. bas says:

    thanx works great!

  68. My Vox blog says:

    [...] navigation above that directly links to an outside site, I’m using Mark Jaquith’s Page links To plug-in. It’s very easy to install and use, and I’m running the latest 2.2 version of [...]

  69. I need a job says:

    thank you for free download

  70. [...] (Versionen 2.0.x). Wordpress wird erweitert um folgende Plugins: Ultimate Tag Warrior, FeedList, Page Links To, Google Sitemaps, Usermeta und Userextra, ZenShow, Category Posts von Watershed Studios, [...]

  71. [...] Page Links to เป็นการใส่ลิงก์ให้กับ Page ไปยังที่ต่าง ๆ ตามที่เราต้องการ แทนที่จะเป็นลิงก์ภายใน Blog เช่น เรามี Page Forum เพื่อให้ลิงก์ไปยัง http://www.domain.com/forum นั้น โดยปกติแล้วทำไม่ได้ แต่ติดตั้งปลั๊กอินตัวนี้เข้าไป ก็จะสามารถลิงก์ไปหาได้ [...]

  72. WordpressLinks to plug-inWordpress tags WP Designer

  73. but I offer no warranty and take no responsibility if it scares you away or sets fire to your computer display. If you’re wondering how I created a page in my WordPress navigation above that directly links to an outside site, I’m using Mark Jaquith’sPage links Toplug-in. It’s very easy to install and use, and I’m running the latest 2.2 version of WordPress so I know it’s up to date. 1FPS | David Chartier

  74. [...] Page Links To v1.4Allows you to set a “links_to” meta key with a URI value that will be be used when listing WP pages. Good for setting up navigational links to non-WP sections of your Mark Jaquith [...]

  75. indir says:

    nediyo olum bu

  76. [...] static url. Random url freaks me. – categories list. – a few plugins. Will they work ? Esp FAlbum, Page Links To, PHP Exec, Top Cat The current version is good enough. I can stay forever with it. Is it worth an [...]

  77. Custom Pages widget. Lets you exclude pages by ID number. Flexi Pages Widget. Lotsa configuration options Haytabay’s Subpages. lists subpages of current page Widgets/Plugins I haven’t tried but might want to:Page links to- link a page to anywhere on web, not just another WordPress site. [via] Yet another list subpages widget, this is WenderHost’s. Not tried, because I tried the other one. List subpages with descriptions

  78. tonneti says:

    thanks for this great hack!! ;)

    greets

  79. [...] Learn more and download the Page Links To plugin at txfx.net >> [...]

  80. Faceless says:

    wow! thx. But i don’t get it.

  81. Robert says:

    I tried this on version 2.2.2 and when I go to save or publish a page it disappears. Anything I am doing wrong, or just not compatible?

  82. [...] 16th 2007 edited by icyone on the 16th August 2007 at 22:07:00 EDT   found a page links to plugin that seem to be just what I was looking [...]

  83. [...] There is a plugin that does this called Page Links To http://txfx.net/code/wordpress/page-links-to/ [...]

  84. Midoe says:

    doesnt work well with wordpress 2.3
    please fix it cuz when i add a page and publish it, it automatically switches to a drafted post.

  85. the top of the link lists. Else, they will be displayed in alphabetical order. 9. My page order – To order the pages that appear in navigation menu. 10. Page link manager – Gives you option in the edit page to show / hide pages from navigation. 11.Page links to- To redirect pages. 12. Subscribe remind – Adds a reminder after each post asking your readers to subscribe to your feed. 13. Subscribe to comments – Gives an option in each post for your readers to subscribe to comment notification by email.

  86. links only in your posts, and only on your home page. It means these same links will not have this attribute when you post slips onto the 2nd page, or when displayed in Categories or Archives pages, or when the post is displayed as a single post.Page Links To- Allows you to set a “links_to” meta key with a URI value that will be be used when listing WP pages. Good for setting up navigational links to non-WP sections of your By Mark Jaquith. Of course, I will suggest and add more plugins when I am

  87. [...] Learn more and download the Page Links To plugin at txfx.net >> [...]

  88. page added on your menu. But what about the case where there’s already a page somewhere that you want to link to. Maybe it’s part of your IDX system, for example your MLS listing search page that’s maintained by another company. Now what? ThePage Links To Pluginlet’s you add some code to a sort of “dummy” page, which in turn tells the navigation system to link not to the page, but to whatever web address you tell it that the (ta da!) “page links to”

  89. WordPress plugin allows you to create a page which will show up in dynamic menus but when clicked send the visitor to any URL you like. This feature is extremely useful when using WordPress as a CMS. Learn more and download thePage Links To plugin at txfx.net >>

  90. Dave says:

    Oh, this is great – I’ve been looking for a plugin like this for some time. I’ve wanted to make some external links in the “pages” section without hacking my wordpress installation to death. Good show. and thanks!

Leave a Reply