Bin-Blog logoBin-Blog

Learn about the latest in Web Development – as soon as I do.

Export To WordPress: Joomla Plugin

By • Jul 19th, 2009 • Category: Scripts, WordPress

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: ‘’
  • 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.

20 Responses »

  1. […] « Export To WordPress: Joomla Plugin […]

  2. Bruno says:

    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 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, 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;)

  3. chalupa says:

    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.

  4. Jaymis says:

    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

    • ark says:

      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

  5. Jimmy says:

    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

  6. John Samuel says:

    Can you write a post a small introduction on Joomla in one of your upcoming posts

  7. Matt Born says:

    This plugin rocked and worked exactly as advertised. Thanks!

  8. Twopo says:

    Only titles no articles

  9. Mirko says:

    Same Problem, only titles, there any upgrade version?

  10. rob says:

    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!

  11. rob says:

    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!

  12. rob says:

    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.

    • Billo says:

      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?

    • Felix says:

      Nah… didn’t work for me. Still just titles, no actual content. Close, but no cigar, binny & rob.

    • Albert says:

      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).

  13. I have triued numerous times but the content fails each and every time? Frustrating to say the least, shall pop back in few weeks to see if resolved…hopefully.

  14. Logan says:

    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.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>