Wordpress -> Drupal

This is my script for migrating from Wordpress to Drupal. I know that there is already a migration script out there, but I still wrote my own for a few reasons:

  • My needs are simple, and I knew what I wanted.
  • I wanted to migrate comments and pingbacks if possible. This turned out to be easy.
  • I wanted to learn more about coding for Drupal.
  • I’d already started writing it when I saw Borek’s migrator.
  • I wanted to migrate straight to Drupal 5, not 4 first.

So here it is.

Limitations and bugs:

  • Attached files are copied by requesting them off the old server. But thumbnails aren’t migrated too.
  • Pages aren’t migrated. But I’m sure this would be a piece of cake to fix
  • I put dumped my wordpress tables into my drupal database (They are all prefixed with wp-). This is messy, but while Drupal’s multi-database system is a cool and would be perfect, it’s unworkable when you are debugging. Errors seem to be hooked in drupal, and if you have a broken SQL query (for example) the error handling code hooks Drupal themes, which aren’t findable in the alternate-db world you are visiting.
  • All blog posts are migrated to a single user on the other side.
  • I’m pretty sure that I didn’t solve the character encoding issues, just sidestepped them…
  • I didn’t look into Drupal 6 compatibility.
wordpress-import.php.txt8.51 KB


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

RE: Wordpress -> Drupal

Hi Stefano,

Well done on the migration to Drupal! I also found that script that you talk about, and then googled some more, and found that someone had ported it to 5.x.

Reply to comment | Tumbleweed Rants

That is really fascinating, You are an excessively skilled blogger.
I have joined your feed and look forward to searching for extra
of your fantastic post. Additionally, I've shared your web site in my social networks

Long before Ballet flats with

Long before Ballet flats with striking names became objects of desire, chicks have been shoe-crazy. Yes, buying a pair of shoes has always had near-supernatural effects. florenceshopping.org

Italy has been a dream

Italy has been a dream destination for many avid travelers because of its heritage and culture and also because of the presence of the Vatican City in the country. thetexaslawyer.org

Finding a criminal lawyer can

Finding a criminal lawyer can be a daunting experience. There are a lot of criminal lawyers in California. The factors that one should look for in order to find lawyer. oreskylaw.org

As family law matters can be

As family law matters can be very complicated and sensitive, thus, choosing the right attorney to handle the case is imperative. moreabouthealth.org

Sex pills today command a

Sex pills today command a market which is seeing a up-swing, this has resulted in more and more companies jumping in the fray and promoting their sex pills, which come for various sexual treatment, or temporary sexual boosting applications so on and so forth. healthequation.org

Many of us stock around 75

Many of us stock around 75 doctor offices and scorching tubs via five in the nations primary manufacturers, which include Artesian Doctor offices, Bahama Doctor offices by Empire, Master Doctor offices, Nordic Scorching Tubs, Vita Doctor offices and bringing out the Eileen Phelps Signature distinctive line of swim doctor offices by Get better at. spas

Reply to comment | Tumbleweed Rants

Your beneficiaries get to claim the Insurance policy amount.

You need life insurance while you are health insurance
26 married still fairly young and your lifestyle choices.
It's expensive for two reasons. Social butterflies are the people responsible for administering the trust in the UK.
Term life insurance is the universal life insurance policy can be particularly devastating.

Each of our fellow people of

Each of our fellow people of Kansas Area began with all the industry-leading Sundek share deck finish products all-around 40 rice. Whether you happen to be building a whole new pool along with want a new cooler when compared with concrete, non-slip floor or remodeling a pre-existing pool for you to freshen your image, the Sundek Basic Texture Overlay System is an excellent solution. Stained Concrete

The 200-101 vce questions

The 200-101 vce questions information in this study guide is conveyed by adopting a very simple and fun way in the form of CISM vce questions and answers.


http://www.jmpartnership.uk.com/slow.html Chronograph,Constant Calendar,PanoMatic Lunar,Panomatic Date,Panograph,etc.You can own Grachams Chronofighter Swordfish Watches based on the Chronofighter Swordfish cast of watches by the acclaimed Glashutte watchmaker.Enjoy the above functions and accurateness that goes with the Glashutte name.The http://www.iain-gordon.co.uk/login.html


If you're seeking for a unique way to not only prevent baldness but regrow your hair as well, you should definitely take the time to examine the various foods that you're eating on a regular basis.
http://www.tylerscottweddings.org |


I have to do a report for our school magazine on this topic, and your blog has been beneficial. Can you please add more reference to this point, thanks
bellvilleauto |

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.