Export To WordPress: Joomla Plugin

Joomla Logo

After covering WordPress and Drupal, its time for me to set my eyes on Joomla – the next major CMS software in the OSS field. Today, I’ll release my first ever Joomla plugin – the Export to WordPress plugin. This ‘component'(as Joomla users calls it), will create a XML dump of your sites contents. This XML file is readable and importable by wordpress. This plugin is important if you want to migrate from Joomla to WordPress. The XML dump will include all your posts, with categories and with all its comments.

Note: This is my first Joomla Plugin – so expect bugs. I am sure that my code is pretty horrific by professional Joomla plugin writers standards. So if you are migrating a site using this, please test the results thoroughly.

Download Export to WordPress Joomla Plugin


  • Log into the Admin interface of Joomla.
  • Go to Extensions > Install/Uninstall
  • Enter this URL into the ‘Install URL’ field: ‘http://www.bin-co.com/tools/joomla/plugins/com_wordpressexport/com_wordpressexport.zip’
  • Now go to Components > Export to WordPress to create a XML dump.
  • You can import the created file into WordPress.

Plugin Week 2

This plugin is part of the Plugin Week 2 series. Plugin Week is a week when I publish a new plugin each day for an entire week. I have already one this one time – so this is Plugin Week 2. The plugins released so far…

If you want to get news about the upcoming plugin releases(remember, 1 per day), please subscribe to this site.


  1. Hi! First congratulations for the initiative! Well, I have a website done in Joomla 1.5 and am migrating to wordpress, so I would like to migrate my posts too … (my site http://www.ociberativista.com) downloaded and installed your plugin on my joomla but when I click “Export to WordPress Dump” get a “500 internal server error” with the following message: “Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, webmaster@ociberativista.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request ”

    How can I fix? Thank you and congratulations once again!

    p.s: Excuse my English, I’m brazilian;)

  2. Do you know of any current way to go from WordPress to Joomla? Every solution I’ve found either doesn’t exist anymore or the tools have been abandoned and can’t be downloaded.

  3. Does this script require PHP5? It installs fine for me, but trying to run gives an error:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /administrator/components/com_wordpressexport/Sql.php on line 13

    • same problem:
      Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/user/public_html/joomla/administrator/components/com_wordpressexport/Sql.php on line 13

  4. I have been looking and you are the best thing I have found to do the job, I got installed and exported, however when importing to wp, it imports cats. and titles only no article content. ANYhelp would be great, really want to do away with joomla

  5. first of all great initiative! I’m also migrating from Joomla to WordPress. I like Joomla, but WordPress is just a bit easier to use.

    When I import articles I’ve the same as the above, the article content is not migrated into content, but into the excerpt part of the post. Would be nice to know if there a solution!

  6. Found the solution: in the xlm file you need to swap all the excerpt:encoded tags and the content:encoded and you are set. Use a simple editor, replace all is the simpelst solution. I got it to work!

  7. Hi Binny,

    The excerpt and the content tags should be swapped with each other.

    So what I did:
    1. replace all “excerpt:encoded” with “temp:encoded” – the latter can be anything
    2. replace all “content:encoded” with “excerpt:encoded
    3. replace all “temp:encoded” with “content:encoded”

    It should be done in 3 steps, you can’t replace the excerpt in the first step with content (then all will become excerpt in the 2nd step).

    This works, although some articles aren’t completly imported, but mostly it went well.

    • Hi, compliments for this work! but all the posts are cutted (intro and complete text)! In the original xml file exported all was fine, Intro in the excerpt and complete in content, but i don’t know why, the posts uploaded are incomplete and arbitrary trimmed. Got a fix?

    • Thanks, now it worked!
      I also had to convert the file to UTF-8 and fill in the start of the url to all the images (Joomla was doing some stupid relative links).

  8. Hey guys, There is a lot of extra white space in the generated XML file. If you open it in Dreamweaver, Copy one of the areas of whitespace in one of the posts/pages, do a find and replace and paste that whitespace into the Find, and place a simple “Space” in the Replace field, this will eliminated all of the whitespace. Save the file and then import it into WordPress. This stopped WordPress from truncating all of my pages from Joomla and made everything work perfectly.

    Thanks for the plugin.

1 Trackback / Pingback

  1. Link Code Insert: A GreaseMonkey UserScript | Bin-Blog

Comments are closed.