Page Links To

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 (301 Moved Permanently redirects are standard, but you can choose a 302 Moved Temporarily redirect if you wish).

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.

Download

Latest version: Download Page Links To v2.3 [zip]

This plugin has been downloaded 243257 times.

Installation

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

  2. Activate the “Page Links To” plugin in your WordPress administration interface

  3. Create (or edit) a page or a post to have a title of your choosing (leave the content blank)

  4. Down below, in the advanced section, find the Page Links To widget and add a URL of your choosing

  5. Optionally check the boxes to enable link opening in a new browser window, or 302 Moved Temporarily redirects

  6. Save the post or page

  7. Done! Now that post or page will point to the URL that you chose

FAQ

Q. How do I make it so that a page doesn’t link to anything? I’d like to use it as a dummy container.
A. Just use “#” at the link. That won’t go anywhere.

Q. Can this be used to repoint categories to an arbitrary URL?
A. Not at this time. I’m considering it as a future feature.

Q. My links are sending me to http://myblog.com/www.site-i-wanted-to-link-to.com … why?
A. If you want to link to a full URL, you must include the http:// portion.

Q. Can I link to relative URLs?
A. Yes. Linking to /my-photos.php is a good idea, as it’ll still work if you move your site to a different domain.

Changelog

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

Donate

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


1,018 Responses to “Page Links To”

  1. thanks for the GREAT post! Very useful…

  2. Rhian says:

    This plugin does work with WordPress 2.3, but you need to create a blank page (with your chosen title, and no content), publish it, and then edit it to add the links_to tag. Just a heads-up.

    Otherwise, it works perfectly and is proving to be very useful, so thanks for making it!

  3. [...] Jul. 24, 2006 I really adore UTW when combined with ELA. The Page Links To plug-in is quite nice as well, and comes in handy in many instances where you want to have a [...]

  4. [...] 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 [...]

  5. Dale says:

    Nice work, but i still am unable to get subscribe to comments to work

    http://dzrbenson.com/blog/

  6. rivka says:

    I’ve followed every direction given here (including creating a blank page and going back to edit it), but still, when I click the “store” link on my nav bar, the address that appears in the new tab is
    “my website address”"my store address”. How do I get only the store address to register? What am I doing wrong? thanks…

  7. WP-PostRatings Widget v1.20 Adds a PostRatings Widget to display most rated and/or highest rated posts and/or pages on your sidebar. You will need to activate WP-PostRatings first.Lester ‘GaMerZ’ ChanPage Links Tov1.4 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 yourMark Jaquith Subscribe To Comments

  8. - Twitter Tools is a WordPress plugin that creates an integration between your WordPress blog and your Twitter account. Pull your tweets into your blog and create new tweets on blog posts and from within WordPress.Tempus Fugit WordPress Plugin- Page Links To is a plugin that allows you to make certain WordPress pages or posts link to a URI of your choosing, instead of their WordPress page or post URI. WordPress Plugins: Change Thumbnail creation size wordpress plugin

  9. David Peyton says:

    Hi Mark,

    It seems that your permanent 301 redirects are broken in 2.3.2. Just thought I’d drop you a line to let you know!

    The non-permanent redirect works though.

    Thanks for the great plugin!

    Regards,
    David

  10. Bernienor says:

    Im using this ona few blogs, works great – but on one of my blogs its not working at all.

    WordPress database error: [Column 'post_id' in field list is ambiguous]
    (…)

    What can be the issue?

    Thanks :)

  11. LCarter says:

    I’m confused. I installed the plugin. Created a new page. Opened it up to edit it.
    Now what?
    Where exactly do I add the link to? What exaclty do I type?Can someone just type it out for me? I’m a newbie!

  12. aidilazhar says:

    hello….help me…previous when i using wordpress 2.1 ..ur plugin works like charm…but when i manually upgrade to 2.3.2 .. it no longer function. or i have wrongly upgrade the version..help me.. when i add the value…the value is not there

  13. James,

    On the Edit Page screen doesn´t appear the Custom Fields section with the options “links_to”. What could be the problem?

    Thanks.

  14. [...] Kudos to Mr/Mrs. ‘Page-links-to’ person… Page Links To site [...]

  15. Thanks for the plugin
    Adham from Egypt

  16. Samiha says:

    Thanks a lot for great code. I’m ready to make a donation for you, but Paypal is not support fully to our country. I’ll find a way.

    Many thanks

  17. shoban says:

    Hi
    Thanks for this plugin….

    Shoban

  18. David Peyton says:

    Hi Mark,

    It appears that the “links_to” has disappeared from the custom field as a dropdown. I have the same problem as Alexander.

    Regards,
    David

  19. mlindahl says:

    Great tool, thank you! I was quite annoyed when I found out WordPress can’t do this natively. I did a little research, stumbled upon your plugin, and walah! Thank you very much!

    Matthew Lindahl
    http://www.atmatthew.com

  20. Rebecca says:

    Any chance that this plugin will be updated? It’s not working for 2.3.3., it seems to disappear when I attempt to create a new page, and the new page won’t be created at all.

  21. [...] więc cieżko to będzie zrobić bez pomocy odpowiedniej wtyczki. Chodzi dokładnie o plugin Page Links To, który w prosty sposób załatwia nasz [...]

  22. DoFollow Exec-PHP FeedBurner FeedSmith Google (XML) Sitemaps Head META Description MBLA Most Commented No Self Pings Optimal Title Organize Series Plugin Post TeaserPage Links ToPlugins Used Plugin reBlog Subscribe To Comments Sidebar Widgets Smart Unread Comments Show Top Commentators TanTanNoodles Simple Spam Filter WordPress PDA WP_PingPreserver

  23. Low says:

    Thanks so much for creating this plug in.

  24. php code in their posts/pages, and the php code will be executed there, and the output will be displayed. Use “<exec>…</exec>” or “[exec]…[/exec] “(case sensitive) to quote what you want to execute.Page Links To 1.4» Mark Jaquith (url) 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

  25. [...] trzeba Bo narazie jest to w WP czasmi kiepsko zrobione.Przydaæ sie moze tez plugin Page Links To http://txfx.net/code/wordpress/page-links-to/Bo mo¿na nim sprytnie dodac do menu dowolny LINK a to czasmi mo¿e sie przydaæ Ultimate Tag Warrior [...]

  26. [...] Turn Page into Link for WordPress (tags: wordpress cms plugins) [...]

  27. Treneiplinc says:

    rosie@triad29.com

    rosieponder@verizon.net

    Not only do they try to rip you off, they send your email out and you get a ton of junk mail.

  28. aviro25 says:

    does anyone know how to fix page links to in new wordpress version. The link is not working.. Missing variables

  29. [...] geht mit folgendem Plugin: http://txfx.net/code/wordpress/page-links-to/ Aber wie gesagt: Das hier ist eigentlich das falsche Forum. Denn hier bei WordPress.com gibt es [...]

  30. 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. byMark JaquithTinyMCE Advanced – I’ve posted a lot about using this plugin. It was referred to me by Jim Burke from TSG Real Estate, who needed a way to easily add classes to blockquotes, tables, and images. The plugin also does a great job of making tables work

  31. [...] 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 [...]

  32. phx says:

    Hey,

    a really kick ass feature would be if the link clicks were counted.

    So i can display the link clicks.

    :)

  33. e-Spot.se says:

    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. byMark JaquithTinyMCE Advanced – I’ve posted a lot about using this plugin. It was referred to me by Jim Burke from TSG Real Estate, who needed a way to easily add classes to blockquotes, tables, and images. The plugin also does a great job of making tables work

  34. 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. byMark JaquithTinyMCE Advanced – I’ve posted a lot about using this plugin. It was referred to me by Jim Burke from TSG Real Estate, who needed a way to easily add classes to blockquotes, tables, and images. The plugin also does a great job of making tables work

  35. [...] Page Links To – de loin le plus simple des plugins de cette liste, il permet de créer des “pages” qui lient à quelque chose d’autre. C’est la façon la plussimple d’ajouter des liens à votre menu principal, sans avoir à bricoler dans le code. C’est bien pour ajouter un lien pour une galerie de photos externe par exemple. Vous pouvez aussi l’utiliser pour faire un lien vers une section d’une page plutôt que vers la page elle même ce qui peut être intéressant par exemple pour faire un lien vers l’endroit où se trouve le menu d’un restaurant ou vers d’autres section de longues pages. Par Mark Jaquith. [...]

  36. [...] Page Links To – 一个很简单的插件,主要是用来构建page页面之前的内部链接. by Mark Jaquith [...]

  37. Pierre K. says:

    Very nice plugin. I have used it to “block” root pages at the top of drop-down menus, by setting the links-to value to “#”. Thank you !

  38. guymon says:

    Page Link ToPage Links To is a plugin that allows you to make certain WordPress pages or posts link to a URI of your choosing, instead of their WordPress page or post URI JoelStarnes: pageMash The Ajax interface allows you to drag-and-drop the pages into the

  39. [...] 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 [...]

  40. segmeant says:

    I have a static home page for my site, and i’d like to create a blog link for the post page. Only thing is, i’m not sure how to link to it as it links to index.php by default, and that is what the static page ends up being once that is declared. Is there a work around for this issue. Hard to believe this hasn’t been done before. Thanks very much, great plugin!

  41. segmeant says:

    My apologies for the previous post. As I continued my search I was led to the obvious. Right under the Dashboard Options Page where I declared my static home page there is an option for me to declare my post page. I could then declare my Blog page to be the posts. (duh, must open eyes) I thank you for the plugin!

  42. Lovely wordpress plugin! WordPress should integrate this into their core system.

    Thanks a lot

  43. [...] soalan2, boleh gunakan plugin..dapatkan di sini >>> Tempus Fugit | TxFx.net » Page Links To untuk soalan1, saya tak berapa faham..mungkin saudara ptut letak directory tersebut di [...]

  44. # Rhian Says:

    This plugin does work with WordPress 2.3, but you need to create a blank page (with your chosen title, and no content), publish it, and then edit it to add the links_to tag. Just a heads-up.”

    Thanks Rhian this worked a treat

    Andy

  45. tianyi says:

    It works well on WP 2.5! Thank you!

  46. [...] the possibility of choosing which items appear in the navigation menu. Mark Jaquith brings up his Page Links To plugin which allows you to point pages and menus to links outside of your blog’s [...]

  47. [...] 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 blog. Love this one….allows you to link pages to other sites. So when you click on My Bio above it takes you to an external site. [...]

  48. [...] 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 [...]

  49. [...] then created a new page and used the Links to Page plugin to get it to link to the gallery category page. You can see the link up on the top nav [...]

  50. Miguel says:

    Using links_to in 2.5 not the same as in 2.2

    I just upgraded one of my sites from version 2.2 of WordPress to 2.5 and am confused. I wrote a page and wanted to use my Netflix RSS on that page, I went down the extra features, saw the drop down for links_to and pasted the RSS link in, previewed the page and nothing. Went into my Plugin settings, activated v1.4 of links_to and previewed the page and it worked.

    1st question, is links_to built into 2.5 or not and if so why so I have to use v1.4 of the plugin to get it to work?

    2nd question, when I display that page, I get a new window of my Netflix queue, did this with a few other sites and the same thing.

    How do I embed the linked site so that’s it’s displayed within my wordpress and the user doesn’t end up on another site?

    FYI, I do have Netflix working as an RSS Widget, but I would prefer to have it as a page so that there are descriptions etc.

    Miguel

  51. [...] Page Links To – 本文最简单易用的插件。该插件允许你通过创建“页面”来链接到任何你想要的位置。不必修改代码就能轻松为主菜单添加链接。例如:链接到您的外部相册。您还能通过它创建链接到页面的指定位置,对于制作饭店菜单或大幅页面的小区域链接将非常有用。作者: Mark Jaquith [...]

  52. [...] Page Links To – de loin le plus simple des plugins de cette liste, il permet de créer des “pages” qui lient à quelque chose d’autre. C’est la façon la plussimple d’ajouter des liens à votre menu principal, sans avoir à bricoler dans le code. C’est bien pour ajouter un lien pour une galerie de photos externe par exemple. Vous pouvez aussi l’utiliser pour faire un lien vers une section d’une page plutôt que vers la page elle même ce qui peut être intéressant par exemple pour faire un lien vers l’endroit où se trouve le menu d’un restaurant ou vers d’autres section de longues pages. Par Mark Jaquith. [...]

  53. CMS Gallery says:

    Brilliant plugin. It’s saved me so much time :)

  54. [...] Page Links To – 本文最简单易用的插件。该插件允许你通过创建“页面”来链接到任何你想要的位置。不必修改代码就能轻松为主菜单添加链接。例如:链接到您的外部相册。您还能通过它创建链接到页面的指定位置,对于制作饭店菜单或大幅页面的小区域链接将非常有用。作者: Mark Jaquith [...]

  55. [...] 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 [...]

  56. Diego says:

    Hi Mark,

    Your plugin is really great, but could you PLEASE say something about it working with WordPress 2.5? (it doesn’t right now)
    Are you planning on an update soon?
    Cheers,
    Diego
    http://www.secretia.com

  57. neyz says:

    Hello,

    i have installed your plugin with WP 2.5 and it doesn’t seem to be working :(

    Does aynone know about an alternative to this plugin or if it’s going to get updated ?

    Thanks for your work !

  58. pedro claro says:

    Yes, it is not working in 2.5
    But thanks anyway

  59. mj says:

    Not working in WP 2.5 here either. Please update!

  60. Mark says:

    How is it not working in 2.5? It works fine for me (as seen on this site with my “Photos” and “Services” links).

  61. Mark Barnes says:

    It works fine for me on 2.5, too. (See the “My King” link on my blog.)

  62. Thank you so much!

    I’ve been looking for something like this for months! It’s so simple and easy to use!

    Much love for San Jose, CA!

  63. [...] per reindirizzare la pagina all’indirizzo di wordpress potete usare il plugin “Page Link To“. Una volta caricato e attivato il plugin vi create una pagina vuota (nominata ad es. Foto) e [...]

  64. Tine Müller says:

    I have installed it on my site but I can’t see where I can use it when making a new page? Could someone please make a PrintScreen?

  65. Andy Howell says:

    Cool little Plugin, very useful :)

  66. [...] Page Links To – 本文最简单易用的插件。该插件允许你通过创建“页面”来链接到任何你想要的位置。不必修改代码就能轻松为主菜单添加链接。例如:链接到您的外部相册。您还能通过它创建链接到页面的指定位置,对于制作饭店菜单或大幅页面的小区域链接将非常有用。作者: Mark Jaquith [...]

  67. vince says:

    hey,

    what about adding the facility to add a meta ‘links_to_post’ and then quote the post id. Helps when you need to move the site to another server and domain or even to a sub-directory.

  68. Very good plugin and works great on WP 2.5. Thank you very much for your work! :-)

  69. Carole says:

    Thank you for taking the time to develop this plugin.

    I have installed the plugin but when I go to create a new page I cannot find any reference to it in the templates. Please help.

  70. Bloggintown says:

    Great plug-in! I have been searching for something like this for a while.

    I have a question:
    When I do a re-direct, I want it to open in another tab or at worst another window. How can I do this?

    Thanks!

  71. Jim says:

    Perfect!
    Excellent work in WP 2.5, this one’s a keeper :)

  72. Kee says:

    Yea.. it doesnt seem to be working for me either.. used firefox 2.0, then upgraded to firefox 3.0, and also using ie 6.0.. and none of them popped up into a new window.. for (http://markjaquith.com/) or (http://www.4-14.org.uk/) .. so.. im also using windows xp 64-bit ..

    so i dont know if that has anything to do with it.

  73. sandra says:

    Anyway I can mask/hide the redirected URL so that my site’s address still shows in the Location bar?

    Or as Miguel asked, “How do I embed the linked site so that’s it’s displayed within my wordpress and the user doesn’t end up on another site?”

    Tq.

  74. Frank says:

    I guess I have the same question as Sandra. I can’t figure out what to set the links_to_target to get the page to open embedded in my blog. Any help would be appreciated, thanks for providing this plug-in.

  75. [...] alternativa, per reindirizzare la pagina all’indirizzo di wordpress potete usare il plugin “Page Link To“. Una volta caricato e attivato il plugin vi create una pagina vuota (nominata ad es. Foto) e nei [...]

  76. Den says:

    Hey there, the plugin is pretty simple at usage. Lightweight and it worked effectively.
    Find it hard to figure out what it does at first since it was named to “Page links to”. Thought it was used for linking internal pages.
    Now I know what it is and I can link my blog with my other websites.
    Thanks for the ultra cool plugin.

  77. Den says:

    Frank did you figure the ” links_to_target ” tag yet?
    Pretty simple, it’s like creating or hyperlink your link.
    Once you created the “links_to and URL in the custom field. You need to create ” links_to_target ” in a new custom field with value ” _new “.
    Your page will save by itself make sure the status Published is set first.
    Check you page nav link and click on it. New page will open.
    Easy pheasy!
    Hope I answered that correctly. :P

  78. Alex says:

    I don’t know if I’m getting this right, but what’s the point of this plugin? I went in (without the plugin), created a new (blank) page for my Flickr library and added “links_to” in the custom field.

    What else does this plugin do that I didn’t just do with the above method?

    Or am I completely missing the boat here?

  79. Matt says:

    For some reason one of the pages I used this on has now replaced my 404 message. So whenever a link is broken the user gets redirected to another site, not the 404. Any ideas?

  80. Wow and wow again…
    I have the latest version (2.5.1) of WordPress installed and this works great and just as described above.
    In short for those who haven’t read properly the full text… Make a dummy page with title and add the Custom Field key lins_to with the URL as value and you have it up and running!
    No editing themes/templates to add items to the menu so you can test and change easily. For me that is what really sells it.
    Many many thanks.
    Mike

  81. [...] Page Links To – 本文最简单易用的插件。该插件允许你通过创建“页面”来链接到任何你想要的位置。不必修改代码就能轻松为主菜单添加链接。例如:链接到您的外部相册。您还能通过它创建链接到页面的指定位置,对于制作饭店菜单或大幅页面的小区域链接将非常有用。作者: Mark Jaquith [...]

  82. Mark says:

    I don’t know if I’m getting this right, but what’s the point of this plugin? I went in (without the plugin), created a new (blank) page for my Flickr library and added “links_to” in the custom field.

    What else does this plugin do that I didn’t just do with the above method?

    It changes the WP-generated link to your page to point to the URL specified by your links_to custom field. If you did it without the plugin, you’d just have a blank “Flickr” WordPress page that didn’t point to your Flickr library!

  83. sandra says:

    Hi Mark,

    I still haven’t found the solution to embedding the redirected page within my wordpress. Any thoughts?

    Den: The ”links_to_target” tag works great if you want the redirected page to open in a new window, but Frank and I want to embed the redirected content. Any ideas?

    Thx!

  84. Mark says:

    Sandra,

    What you want isn’t going to be feasible the way you want without using an <iframe /> or really geeky PHP code. Embedding and redirecting, although they seem similar, are very different, technically.

Leave a Reply

Note: If you are replying to another commenter, click the "Reply to {NAME} →" button under their comment to help the conversation have a better flow!

Anti-Spam Quiz: