Moving links between WP installations
Uahh.. that’s quite a long time since my last post here ;).
- - -Short ‘excuse’
I’ve been working on Polish translation of some entries and WordPress Codex documentation. Apparently in my country even among people occupied with internet/computer related stuff knowledge of English seems to be rather basic. I was kind of surprise with this because I thought this language is already very popular.. Anyway I decided to ‘help’ some people interested in WordPress and prepare some texts in Polish. And that takes lots of time ;). But.. Christmas is coming and finally I have some extra time (that’s weird actually).
- - -End of ‘excuse’
Few times I was asked how to export links (Blogroll) to new WordPress installation. Below there is a solution I’ve found looong time ago on WP forum. Unfortunately I don’t remember name of an author of this script. If someone knows it I will appreciate feedback so I can include this information.
Importing link to WP is easy if we have them saved as .opml file (in admin panel there is tab Links -> Import Links). So the only one difficulty is export links from the old WP. Below is script you can download and save as links2opml.php. Then you need to upload it to your old WP installation (the one you want to export links from) to the same folder as wp-config.php file (top folder of installation).
Next step is to login to admin panel of WP you want to import links to, and go to Links -> Import Links. Add URl which will look like http://url-of-site-you-import-links-from/link2opml.php. And that’s it. Piece of cake
.
Export of links (2.3 KB)
23rd December 2007 2 comments





Hey Kasia!
Thank you for the pointers on the link-moving-script. I tried it out and it worked great when I pointed the Link->Import page to http://url-of-site-you-import-links-from/links2opml.php, but not to http://url-of-site-you-import-links-from/link2opml.php.
(Notice the “s” inserted into the first link.)
Yes, a piece of cake. Thanks again for sharing your solutions!
[...] solution I found to get around this manual labor was to use this great little script that creates an OPML file of all your old blogroll links. Thanks, Kasia! Read her blog post about the solution and give it a [...]