Forums

Home » Liferay Portal » English » 9. Announcements

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Wordpress Importer 1.2 released! Juan Fernández May 17, 2013 2:28 AM
RE: Wordpress Importer 1.2 released! Jonas Yuan February 6, 2012 6:46 AM
RE: Wordpress Importer 1.2 released! Nisarg Parikh February 8, 2012 4:22 AM
RE: Wordpress Importer 1.2 released! Juan Fernández February 8, 2012 4:29 AM
RE: Wordpress Importer 1.2 released! Nisarg Parikh February 8, 2012 5:00 AM
RE: Wordpress Importer 1.2 released! Richard Robbins March 2, 2012 10:20 AM
RE: Wordpress Importer 1.2 released! Juan Fernández March 5, 2012 3:48 AM
RE: Wordpress Importer 1.2 released! Richard Robbins March 12, 2012 8:08 AM
RE: Wordpress Importer 1.2 released! Akira Akira May 17, 2013 1:46 AM
RE: Wordpress Importer 1.2 released! Juan Fernández May 17, 2013 2:25 AM
RE: Wordpress Importer 1.2 released! Akira Akira May 22, 2013 3:07 AM
RE: Wordpress Importer 1.2 released! Juan Fernández May 22, 2013 3:33 AM
RE: Wordpress Importer 1.2 released! Mario Rossi June 16, 2013 11:43 AM
RE: Wordpress Importer 1.2 released! gordon daniels November 5, 2013 12:00 PM
RE: Wordpress Importer 1.2 released! Juan Fernández November 6, 2013 2:28 AM
RE: Wordpress Importer 1.2 released! gordon daniels November 6, 2013 9:26 AM
RE: Wordpress Importer 1.2 released! gordon daniels January 11, 2014 6:57 PM
RE: Wordpress Importer 1.2 released! Juan Fernández January 12, 2014 11:45 PM
RE: Wordpress Importer 1.2 released! gordon daniels January 13, 2014 5:04 AM
RE: Wordpress Importer 1.2 released! Juan Fernández January 13, 2014 5:08 AM
RE: Wordpress Importer 1.2 released! gordon daniels January 13, 2014 6:11 AM
RE: Wordpress Importer 1.2 released! Ahmad El-Melegy February 23, 2014 4:39 PM
RE: Wordpress Importer 1.2 released! Juan Fernández March 4, 2014 12:03 AM
Upgraded to 6.2 Artem Khojoyan May 18, 2014 6:06 AM
RE: Upgraded to 6.2 Juan Fernández May 19, 2014 2:59 AM
RE: Upgraded to 6.2 Sanjay Kunni Kannan July 7, 2014 1:55 AM
RE: Upgraded to 6.2 Juan Fernández July 7, 2014 2:08 AM
RE: Wordpress Importer 1.2 released! Karishma Tiwari October 3, 2014 1:55 AM
RE: Wordpress Importer 1.2 released! Karishma Tiwari October 3, 2014 2:14 AM
RE: Wordpress Importer 1.2 released! Juan Fernández October 3, 2014 2:28 AM
RE: Wordpress Importer 1.2 released! Karishma Tiwari October 6, 2014 11:29 PM
RE: Wordpress Importer 1.2 released! Juan Fernández October 7, 2014 4:44 AM
RE: Wordpress Importer 1.2 released! Karishma Tiwari October 8, 2014 2:07 AM
RE: Wordpress Importer 1.2 released! Juan Fernández October 9, 2014 12:39 AM
RE: Wordpress Importer 1.2 released! Matthew Sheets October 29, 2014 11:34 AM
RE: Wordpress Importer 1.2 released! Juan Fernández October 30, 2014 1:35 AM
RE: Wordpress Importer 1.2 released! Matthew Sheets November 14, 2014 2:15 PM
Juan Fernández
Wordpress Importer 1.2 released!
May 17, 2013 2:28 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hello community!

After more than 400 downloads of the previous versions and a good feedback from several users around the world, I'm proud to announce a new version of the Wordpress Importer Portlet: this is Wordpress Importer Portlet version 1.2.

This portlet is now compatible with Liferay 6.1CE and has several bug fixes, improvements and refactorings to improve the quality and legibility of the code.

These are the main improvements and new features:

- Import blog entry comments (ultra-demanded popular feature emoticon)
- Create user accounts for all Wordpress commenters so that if they create an account in the portal, all their imported comments will be associated to their accounts.
- Respect the original images formatting
- Spanish translation (french and chinese coming soon)

Apart from that, I think it's worth mentioning that I migrated the code to GitHub (https://github.com/juanferrub/liferay-wordpress-importer), and I'm using the issues tool provided by GitHub to track all the improvement requests and bug reports.

For a future version I'd like to integrate with wordpress-java (http://code.google.com/p/wordpress-java/) an opensource library that interacts with Wordpress XMLRPC API, so that you could enter you user name, password and wordpress site url in the importer and it access all the content without further interactions. This is a feature already requested by community members, so I'll look at it.

I want to thank you all for all the comments and contributions and I wish you go on commenting and asking for (and contributing!! emoticon) new features. Feel free to do it here or in the GitHub issue tracker.

Links:

Download link: http://sourceforge.net/projects/wordpressimport/files/latest/download
Source code: http://github.com/juanferrub/Liferay-Wordpress-Importer-Portlet
Github issue tracker: http://github.com/juanferrub/Liferay-Wordpress-Importer-Portlet/issues

Thanks and enjoy!
Juan Fernández
Jonas Yuan
RE: Wordpress Importer 1.2 released!
February 6, 2012 6:46 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Nice! Thanks a lot, Juan!

Jonas Yuan

==================
The Author of Liferay Books:
Liferay 6.1 cookbook: Liferay Portal Systems Development
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Nisarg Parikh
RE: Wordpress Importer 1.2 released!
February 8, 2012 4:22 AM
Answer

Nisarg Parikh

Rank: Expert

Posts: 252

Join Date: December 30, 2009

Recent Posts

Downloaded and tested..!!! emoticon

Works perfect.. Thanks... Excellent utility..!!!
Juan Fernández
RE: Wordpress Importer 1.2 released!
February 8, 2012 4:29 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Wow, Nisarg! Thanks for the rapid feedback! Glad you liked it! emoticon

Please tell me if you find something we could improve. I'm adding now support for embedded youtube videos, which is quite usual in many wordpress blogs.
Thanks!
Juan
Nisarg Parikh
RE: Wordpress Importer 1.2 released!
February 8, 2012 5:00 AM
Answer

Nisarg Parikh

Rank: Expert

Posts: 252

Join Date: December 30, 2009

Recent Posts

Hi Juan,

I guess showing of Errors and Exceptions should be improved.

First, I have uploaded other than Wordpress XML file and on UI it shows file uploaded successfully but on back-end it gives proper message. Below message should be on UI side so that user understand the error.

"Starting the Wordpress importer
Woops! There was an error reading the file. Are you sure it's an xml file generated by Wordpress?"


Second time again it shows success message on back-end only.
"Import finished
Sucessfully imported 1 pages, 1 categories, 65 tags"


Apart from that some Help showing how to start will also helpful.

Thank you.

-Nisarg
Richard Robbins
RE: Wordpress Importer 1.2 released!
March 2, 2012 10:20 AM
Answer

Richard Robbins

Rank: New Member

Posts: 2

Join Date: March 1, 2012

Recent Posts

I've downloaded and uploaded the wordpress 1.2 importer war file under plug in installer. I am getting a green bar that I have been successful but when I go to control panel, I am not getting the "wordpress importer"- am i doing something wrong?

any help would be appreciated.

Thanks!

Richie
Juan Fernández
RE: Wordpress Importer 1.2 released!
March 5, 2012 3:48 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Richard:
Which version of Liferay Portal are you using? Are you getting any error message in the server console? Can you add the portlet via Add Applications -> Wordpress -> Wordpress Importer Portlet in a site page?
Thanks
Juan
Richard Robbins
RE: Wordpress Importer 1.2 released!
March 12, 2012 8:08 AM
Answer

Richard Robbins

Rank: New Member

Posts: 2

Join Date: March 1, 2012

Recent Posts

Juan Fernández:
Hi Richard:
Which version of Liferay Portal are you using? Are you getting any error message in the server console? Can you add the portlet via Add Applications -> Wordpress -> Wordpress Importer Portlet in a site page?
Thanks
Juan



Juan,

I am not getting that option. As far an error message in the server console, I am not sure.

I download the .war file- then I go into the control panel>plugins installation>install more portlets> upload file and then its successful.

Do I need to go back and do "add application">install more applications ?

Thanks!

Richie
Akira Akira
RE: Wordpress Importer 1.2 released!
May 17, 2013 1:46 AM
Answer

Akira Akira

Rank: Junior Member

Posts: 60

Join Date: September 24, 2010

Recent Posts

I want convert path image_thumbnail_id( Wordpress) to smallImageUrl (Liferay). I need help ? Thanks
Juan Fernández
RE: Wordpress Importer 1.2 released!
May 17, 2013 2:25 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Akira:
You'll need to extend WordpressUtil.java to match your requirements. Where are those pictures? Are they part of the blog entries? Basically, you'll need to parse its appeareance and then call the corresponding Liferay service where you want to add them. Will this be part of a web content or a blog entry?

Don't hesitate in asking me, and if you manage to implement it, please contribute it and I'll release a new version
Thanks,
Juan
Akira Akira
RE: Wordpress Importer 1.2 released!
May 22, 2013 3:07 AM
Answer

Akira Akira

Rank: Junior Member

Posts: 60

Join Date: September 24, 2010

Recent Posts

I'm busy so did not answer. This issue has been resolved.
I create 2 table. 1 table store value wp:post_id and wp:attachment_url. 1 table store value _thumbnail_id and wp:post_date. Store data temp table then insert wp:attachment_url to smallUrlImage.

 1<item>
 2        <title>Futrur</title>
 3        <link>/?attachment_id=21922</link>
 4        <pubDate>Wed, 15 May 2013 07:38:10 +0000</pubDate>
 5        <dc:creator></dc:creator>
 6        <guid isPermaLink="false">/wp-content/uploads/2013/05/Futrur1.jpg</guid>
 7        <description></description>
 8        <content:encoded><![CDATA[]]></content:encoded>
 9        <excerpt:encoded><![CDATA[]]></excerpt:encoded>
10    [b]    <wp:post_id>21922</wp:post_id>[/b]
11        <wp:post_date>2013-05-15 14:38:10</wp:post_date>
12        <wp:post_date_gmt>2013-05-15 07:38:10</wp:post_date_gmt>
13        <wp:comment_status>open</wp:comment_status>
14        <wp:ping_status>open</wp:ping_status>
15        <wp:post_name>futrur-2</wp:post_name>
16        <wp:status>inherit</wp:status>
17        <wp:post_parent>21897</wp:post_parent>
18        <wp:menu_order>0</wp:menu_order>
19        <wp:post_type>attachment</wp:post_type>
20        <wp:post_password></wp:post_password>
21        <wp:is_sticky>0</wp:is_sticky>
22    [b]    <wp:attachment_url>/wp-content/uploads/2013/05/Futrur1.jpg</wp:attachment_url>[/b]
23        <wp:postmeta>
24            <wp:meta_key>_wp_attached_file</wp:meta_key>
25            <wp:meta_value><![CDATA[2013/05/Futrur1.jpg]]></wp:meta_value>
26        </wp:postmeta>
27        <wp:postmeta>
28            <wp:meta_key>_wp_attachment_metadata</wp:meta_key>
29            <wp:meta_value><![CDATA[a:6:{s:5:"width";s:3:"150";s:6:"height";s:3:"100";s:14:"hwstring_small";s:23:"height='85' width='128'";s:4:"file";s:19:"2013/05/Futrur1.jpg";s:5:"sizes";a:1:{s:16:"index-categories";a:3:{s:4:"file";s:17:"Futrur1-20x13.jpg";s:5:"width";s:2:"20";s:6:"height";s:2:"13";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}}]]></wp:meta_value>
30        </wp:postmeta>
31    </item>


 1<item>
 2        <title></title>
 3        <link>/?p=21897</link>
 4        <pubDate>Wed, 15 May 2013 07:23:34 +0000</pubDate>
 5        <dc:creator>T</dc:creator>
 6        <guid isPermaLink="false">/?p=21897</guid>
 7        <description></description>
 8        <content:encoded><![CDATA[</excerpt:encoded>
 9        <wp:post_id>21897</wp:post_id>
10        <wp:post_date>2013-05-15 14:23:34</wp:post_date>
11        <wp:post_date_gmt>2013-05-15 07:23:34</wp:post_date_gmt>
12        <wp:comment_status>open</wp:comment_status>
13        <wp:ping_status>open</wp:ping_status>
14        <wp:post_name></wp:post_name>
15        <wp:status>publish</wp:status>
16        <wp:post_parent>0</wp:post_parent>
17        <wp:menu_order>0</wp:menu_order>
18        <wp:post_type>post</wp:post_type>
19        <wp:post_password></wp:post_password>
20        <wp:is_sticky>0</wp:is_sticky>
21        <category domain="category" nicename="bai-viet"><![CDATA[]]></category>
22        <category domain="post_tag" nicename="chung-toi-noi-ve-chung-toi"><![CDATA[i]]></category>
23        <wp:postmeta>
24            <wp:meta_key>_edit_last</wp:meta_key>
25            <wp:meta_value><![CDATA[436]]></wp:meta_value>
26        </wp:postmeta>
27        <wp:postmeta>
28            <wp:meta_key>views</wp:meta_key>
29            <wp:meta_value><![CDATA[291]]></wp:meta_value>
30        </wp:postmeta>
31    [b]    <wp:postmeta>
32            <wp:meta_key>_thumbnail_id</wp:meta_key>
33            <wp:meta_value><![CDATA[21922]]></wp:meta_value>
34        </wp:postmeta>
35        [/b]
36   
37        <wp:comment>
38            <wp:comment_id>27891</wp:comment_id>
39            <wp:comment_author></wp:comment_author>
40            <wp:comment_author_email></wp:comment_author_email>
41            <wp:comment_author_url></wp:comment_author_url>
42            <wp:comment_author_IP>10.2.28.125</wp:comment_author_IP>
43            <wp:comment_date>2013-05-15 14:33:40</wp:comment_date>
44            <wp:comment_date_gmt>2013-05-15 07:33:40</wp:comment_date_gmt>
45            <wp:comment_content><![CDATA[:!:]]></wp:comment_content>
46            <wp:comment_approved>1</wp:comment_approved>
47            <wp:comment_type></wp:comment_type>
48            <wp:comment_parent>0</wp:comment_parent>
49            <wp:comment_user_id>1201</wp:comment_user_id>
50        </wp:comment>
51    </item>
Juan Fernández
RE: Wordpress Importer 1.2 released!
May 22, 2013 3:33 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Akira Akira:
I'm busy so did not answer. This issue has been resolved.


Good to know, Akira!
Will you share your code with the community so that I can improve the plugin and release a new version with this new feature?
Thanks!
Juan
Mario Rossi
RE: Wordpress Importer 1.2 released!
June 16, 2013 11:43 AM
Answer

Mario Rossi

Rank: New Member

Posts: 2

Join Date: May 28, 2013

Recent Posts

Akira Akira:
I'm busy so did not answer. This issue has been resolved.
I create 2 table. 1 table store value wp:post_id and wp:attachment_url. 1 table store value _thumbnail_id and wp:post_date. Store data temp table then insert wp:attachment_url to smallUrlImage.

 1<item>
 2        <title>Futrur</title>
 3        <link>/?attachment_id=21922</link>
 4        <pubDate>Wed, 15 May 2013 07:38:10 +0000</pubDate>
 5        <dc:creator></dc:creator>
 6        <guid isPermaLink="false">/wp-content/uploads/2013/05/Futrur1.jpg</guid>
 7        <description></description>
 8        <content:encoded><![CDATA[]]></content:encoded>
 9        <excerpt:encoded><![CDATA[]]></excerpt:encoded>
10    [b]    <wp:post_id>21922</wp:post_id>[/b]
11        <wp:post_date>2013-05-15 14:38:10</wp:post_date>
12        <wp:post_date_gmt>2013-05-15 07:38:10</wp:post_date_gmt>
13        <wp:comment_status>open</wp:comment_status>
14        <wp:ping_status>open</wp:ping_status>
15        <wp:post_name>futrur-2</wp:post_name>
16        <wp:status>inherit</wp:status>
17        <wp:post_parent>21897</wp:post_parent>
18        <wp:menu_order>0</wp:menu_order>
19        <wp:post_type>attachment</wp:post_type>
20        <wp:post_password></wp:post_password>
21        <wp:is_sticky>0</wp:is_sticky>
22    [b]    <wp:attachment_url>/wp-content/uploads/2013/05/Futrur1.jpg</wp:attachment_url>[/b]
23        <wp:postmeta>
24            <wp:meta_key>_wp_attached_file</wp:meta_key>
25            <wp:meta_value><![CDATA[2013/05/Futrur1.jpg]]></wp:meta_value>
26        </wp:postmeta>
27        <wp:postmeta>
28            <wp:meta_key>_wp_attachment_metadata</wp:meta_key>
29            <wp:meta_value><![CDATA[a:6:{s:5:"width";s:3:"150";s:6:"height";s:3:"100";s:14:"hwstring_small";s:23:"height='85' width='128'";s:4:"file";s:19:"2013/05/Futrur1.jpg";s:5:"sizes";a:1:{s:16:"index-categories";a:3:{s:4:"file";s:17:"Futrur1-20x13.jpg";s:5:"width";s:2:"20";s:6:"height";s:2:"13";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}}]]></wp:meta_value>
30        </wp:postmeta>
31    </item>


 1<item>
 2        <title></title>
 3        <link>/?p=21897</link>
 4        <pubDate>Wed, 15 May 2013 07:23:34 +0000</pubDate>
 5        <dc:creator>T</dc:creator>
 6        <guid isPermaLink="false">/?p=21897</guid>
 7        <description></description>
 8        <content:encoded><![CDATA[</excerpt:encoded>
 9        <wp:post_id>21897</wp:post_id>
10        <wp:post_date>2013-05-15 14:23:34</wp:post_date>
11        <wp:post_date_gmt>2013-05-15 07:23:34</wp:post_date_gmt>
12        <wp:comment_status>open</wp:comment_status>
13        <wp:ping_status>open</wp:ping_status>
14        <wp:post_name></wp:post_name>
15        <wp:status>publish</wp:status>
16        <wp:post_parent>0</wp:post_parent>
17        <wp:menu_order>0</wp:menu_order>
18        <wp:post_type>post</wp:post_type>
19        <wp:post_password></wp:post_password>
20        <wp:is_sticky>0</wp:is_sticky>
21        <category domain="category" nicename="bai-viet"><![CDATA[]]></category>
22        <category domain="post_tag" nicename="chung-toi-noi-ve-chung-toi"><![CDATA[i]]></category>
23        <wp:postmeta>
24            <wp:meta_key>_edit_last</wp:meta_key>
25            <wp:meta_value><![CDATA[436]]></wp:meta_value>
26        </wp:postmeta>
27        <wp:postmeta>
28            <wp:meta_key>views</wp:meta_key>
29            <wp:meta_value><![CDATA[291]]></wp:meta_value>
30        </wp:postmeta>
31    [b]    <wp:postmeta>
32            <wp:meta_key>_thumbnail_id</wp:meta_key>
33            <wp:meta_value><![CDATA[21922]]></wp:meta_value>
34        </wp:postmeta>
35        [/b]
36   
37        <wp:comment>
38            <wp:comment_id>27891</wp:comment_id>
39            <wp:comment_author></wp:comment_author>
40            <wp:comment_author_email></wp:comment_author_email>
41            <wp:comment_author_url></wp:comment_author_url>
42            <wp:comment_author_IP>10.2.28.125</wp:comment_author_IP>
43            <wp:comment_date>2013-05-15 14:33:40</wp:comment_date>
44            <wp:comment_date_gmt>2013-05-15 07:33:40</wp:comment_date_gmt>
45            <wp:comment_content><![CDATA[:!:]]></wp:comment_content>
46            <wp:comment_approved>1</wp:comment_approved>
47            <wp:comment_type></wp:comment_type>
48            <wp:comment_parent>0</wp:comment_parent>
49            <wp:comment_user_id>1201</wp:comment_user_id>
50        </wp:comment>
51    </item>


Thanks for sharing this Akira.
I was looking for a way to convert path image_thumbnail_id( Wordpress) to smallImageUrl (Liferay) and your solution works like a charm.
gordon daniels
RE: Wordpress Importer 1.2 released!
November 5, 2013 12:00 PM
Answer

gordon daniels

Rank: Liferay Master

Posts: 670

Join Date: August 23, 2008

Recent Posts

Hi Juan:

Thanks for this portlet. Is there any documentation that tells how to configure it. I talked one of my friends into using liferay (now they are not friend :-)) but she has a wordpress blog and wants to import it into liferay. Any instructions would be helpful.

thanks
Juan Fernández
RE: Wordpress Importer 1.2 released!
November 6, 2013 2:28 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Gordon!
Not much to explain here, as it is quite simple. You just need to do two things:
1) Export your wordpress site. This will generate an XML file. (How to export a Wordpress site)
2) Inport this XML file using the Wordpress Importer: you'll see all the generated entries, images, tags, categories, etc in you Liferay Portal.
That's it! emoticon

If you have any issues, please report them and I'll do my best to help you (or fix anything if there's an error)
Best,
Juan
gordon daniels
RE: Wordpress Importer 1.2 released!
November 6, 2013 9:26 AM
Answer

gordon daniels

Rank: Liferay Master

Posts: 670

Join Date: August 23, 2008

Recent Posts

thanks for the prompt reply. Since i don't use wordpress did not know that. Will give it a try and let you know what we think.

thanks again
gordon daniels
RE: Wordpress Importer 1.2 released!
January 11, 2014 6:57 PM
Answer

gordon daniels

Rank: Liferay Master

Posts: 670

Join Date: August 23, 2008

Recent Posts

Juan: I imported my friends wordpress bllog and was surprised at the outcome. It created entrieds on the navigation menu, and the content shows only in the wordpress portlet. You have to click on the tabs in the navigation bar and some text appears in portlet. It looks horrible. Am I doing something wrong:? I thought if you had a blog page then the wordrpress blog would appear on that page. Sort of like an ifframe solution.
Attachment

Attachments: screenshot.png (12.1k)
Juan Fernández
RE: Wordpress Importer 1.2 released!
January 12, 2014 11:45 PM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Gordon:

it is not an iFrame like solution. Let me explain how it works. The Wordpress importer imports the content (basically text, images, tages, categories and comments) from Wordpress to Liferay by recreating them inside Liferay. Once the content is in Liferay you can format, edit and show it wherever you want: in several pages, in different portlets...

Regarding the pages that appear in the navigation, that is a recreation of your friend's blog pages. In Wordpress there are two kind of pages: content and blog pages. For the content ones I create a web content display (which is what you see in the screenshot). For the blogs, I create a blog entry in Liferay (check the blog portlet to see all the imported entries).

I agree that if you see only the content, it looks ugly, but that is because no theme or appeareance improvements are applied to the page. A full migration would include creating a theme that replicates the appeareance of the original Wordpress site in Liferay.

The screenshot is not clear enough, but I suspect there are character encoding errors in the text. If that's the case, I'll need you to send me the XML file to further analyze it.

I hope I helped you. In case you keep finding weird stuff or something you consider a bug, please let me know and I'll do my best to fix it for you.

Thanks a lot for your feedback!
Juan
gordon daniels
RE: Wordpress Importer 1.2 released!
January 13, 2014 5:04 AM
Answer

gordon daniels

Rank: Liferay Master

Posts: 670

Join Date: August 23, 2008

Recent Posts

Juan: Thanks for the reply. Now I understand, that makes all the difference. Just one question: I don't want the import of the blog to add page tabs to the navigation bar., is that possible?

thanks again
Juan Fernández
RE: Wordpress Importer 1.2 released!
January 13, 2014 5:08 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Gordon:
Yes, there's a way. In the configuration view there's an option called "Import Pages" which is checked by default.
You can uncheck it to avoid generating the pages in your site.

Tell me if it works or you find any issues
Best,
Juan
gordon daniels
RE: Wordpress Importer 1.2 released!
January 13, 2014 6:11 AM
Answer

gordon daniels

Rank: Liferay Master

Posts: 670

Join Date: August 23, 2008

Recent Posts

Juan: thanks - really appreciate it.
Ahmad El-Melegy
RE: Wordpress Importer 1.2 released!
February 23, 2014 4:39 PM
Answer

Ahmad El-Melegy

Rank: New Member

Posts: 1

Join Date: February 10, 2014

Recent Posts

I have installed it but every time I want to use it I get this message "Wordpress Importer is temporarily unavailable."



I am using 6.2 CE GA1 with tomcat
Juan Fernández
RE: Wordpress Importer 1.2 released!
March 4, 2014 12:03 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Ahmad El-Melegy:
usually it is not a good idea to install portlets from previous versions on new releases. The Wordpress Importer was created for 6.0 and then upgraded to 6.1. I'll try to update it to latest Liferay Portal 6.2 GA 1 and post it here when I have some spare time.
Best,
Juan
Artem Khojoyan
Upgraded to 6.2
May 18, 2014 6:06 AM
Answer

Artem Khojoyan

Rank: New Member

Posts: 6

Join Date: February 19, 2007

Recent Posts

Hi Juan,

Thanks for such a great tool!

I recently had a migration task from WordPress to Liferay. And after some research I've found your tool, which was unfortunately not working under the latest 6.2. So I have done some minor rework on it to support the 6.2 CE. I believe it would be helpful for not only me, so let me post the updated portlet here.
I am able to import a wordpress website and blogs into my Liferay-6.2-CE with almost no issues.

Thanks,
Artem Khojoyan
Attachments: WordpressImporter-portlet-6.2.0.1.2.war (119.3k)
Juan Fernández
RE: Upgraded to 6.2
May 19, 2014 2:59 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Wow Artem! Thanks a lot for this!! It means a lot for the Liferay community!
Thanks for sharing the upgraded portlet!
I have just committed it to my github repository so that others can also benefit from it - https://github.com/juanferrub/liferay-wordpress-importer/releases/tag/1.2-6.2
Thanks again for your contribution!
Juan
Sanjay Kunni Kannan
RE: Upgraded to 6.2
July 7, 2014 1:55 AM
Answer

Sanjay Kunni Kannan

Rank: New Member

Posts: 17

Join Date: May 15, 2009

Recent Posts

Hi Juan,

Does this Wordpress to Liferay importer tool imports Wordpress wiki too.

Regards,
Sanjay
Juan Fernández
RE: Upgraded to 6.2
July 7, 2014 2:08 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Sanjay:
I have not tested it, so I can not tell you if it will work or not. If you are interested on it, could you please test and share your experience with us in the forums?
Thanks a lot for your interest,
Best,
Juan
Karishma Tiwari
RE: Wordpress Importer 1.2 released!
October 3, 2014 1:55 AM
Answer

Karishma Tiwari

Rank: New Member

Posts: 4

Join Date: October 3, 2014

Recent Posts

HI Juan,

Glad to see your Wordpress Importer solution, however I have been trying to bring up the war file on my tomcat7 (running on centos), getting the error:

HTTP 404
description The requested resource (/WordpressImporter-portlet-6.1.0.1.2%20%281%29/) is not available.

Pls advice if I am missing something? Can I just load the war file onto tomcat manager and run it, or do I need to plugin through the liferay portal?

TIA
Karishma Tiwari
RE: Wordpress Importer 1.2 released!
October 3, 2014 2:14 AM
Answer

Karishma Tiwari

Rank: New Member

Posts: 4

Join Date: October 3, 2014

Recent Posts

Hi Juan,

Some update here, I went to my liferay portal and installed the wordpress impoter war file. All I got is this upload wordpress file button, how do I upload a wordpress file? Do I need to compile my wordpress scripts into a format or something?
Appreciate yr help on this.

Thanks again!
Juan Fernández
RE: Wordpress Importer 1.2 released!
October 3, 2014 2:28 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Karishma: go to wordpress and export your blog/site. It will generate an xml file that you can then upload to the wordpress importer portlet.
If you see the logs you should see messages saying what was imported and then you should see the content showing up in your portal.
Good luck! ;)
Juan
Karishma Tiwari
RE: Wordpress Importer 1.2 released!
October 6, 2014 11:29 PM
Answer

Karishma Tiwari

Rank: New Member

Posts: 4

Join Date: October 3, 2014

Recent Posts

Thanks for the guidance, Juan!

I managed to do the import successfully! some questions:
1) How do I remove the page tabs from the navigation bar?
2) How to edit the imported pages? Should I open it into another portlet?
Juan Fernández
RE: Wordpress Importer 1.2 released!
October 7, 2014 4:44 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Karishma:
once the pages are in Liferay you can manage and edit them as any normal page. Just go to Admin -> Pages and you'll them all.
Best,
Juan
Karishma Tiwari
RE: Wordpress Importer 1.2 released!
October 8, 2014 2:07 AM
Answer

Karishma Tiwari

Rank: New Member

Posts: 4

Join Date: October 3, 2014

Recent Posts

Hi Juan,
Thanks so much for your replies.
I have a portal (wordpress) and web application (on php and mysql db) that I need to migrate to Liferay and for the life of myself (so much for the ray in liferay) I am not able to find much info/guidance on doing php application on Liferay.

I have done the wordpress importing using your application, thanks so much for providing that. Now my liferay portal is all haywired.

I have questions as below
1) Is it possible to migrate wordpress interface/template to Liferay?

2) How can be migrate PHP scripting and mysql setup to the Liferay?

3) How do I edit PHP pages/portlets? The first try of uploading a portlet in a .zip format was successful but subsequently it stopped working. Any idea?

Searching for the keywords on Liferay forums did not help much either. I am just wondering if migration is feasible, or do I need to write line by line into the new liferay portal?

Any help is much appreciated, TIA!
Juan Fernández
RE: Wordpress Importer 1.2 released!
October 9, 2014 12:39 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Karishma:
I am really sorry, but I think I can't help you there emoticon
I have never migrated a full PHP app from Wordpress to Liferay, not templates. I have just migrated content (blog entries, pages, images, tags, etc) and that's why I created the Wordpress Importer.
Let me ask for a favor: If you manage to accomplish your migration task, please document the experience and share it with our open source community: other users in the future will love to read about your experiences.
I wish you luck for your project
Best,
Juan
Matthew Sheets
RE: Wordpress Importer 1.2 released!
October 29, 2014 11:34 AM
Answer

Matthew Sheets

Rank: New Member

Posts: 2

Join Date: December 28, 2011

Recent Posts

Hello Juan,

Thank you for your continued work on the Wordpress to Liferay Importer, I wanted to ask if anyone else had the issue of commenters names being duplicated?

So if "John Smith" wrote a comment on Wordpress when I run the importer it becomes "John Smith John Smith" I think this is caused by the Wordpress XML only having 1 "name" field and Liferay looking for 2?

Any ideas would be helpful as I have a rather large Wordpress import I am trying to clean up.

Thanks!
Juan Fernández
RE: Wordpress Importer 1.2 released!
October 30, 2014 1:35 AM
Answer

Juan Fernández

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1250

Join Date: October 2, 2008

Recent Posts

Hi Matthew:
thanks for your kind words.
I haven't seen that issue before, but I wanted to ask you something: are you a developer? If that's the case, I recommend you to have a look at the method that reads the comments from wordpress to see where it might be failing:

https://github.com/juanferrub/liferay-wordpress-importer/blob/master/portlets/WordpressImporter-portlet/docroot/WEB-INF/src/com/liferay/util/WordpressUtil.java#L510

I suspect that wordpress have changed the comments author label (I call it Nickname) and we are somehow collecting it wrong...
I am sorry, but right now I can not debug/test what's going on, but could you have a look at it and tell me what's going on? Maybe just having a look at your wordpress xml file and searching for that label we might discover something.

Thanks!
Matthew Sheets
RE: Wordpress Importer 1.2 released!
November 14, 2014 2:15 PM
Answer

Matthew Sheets

Rank: New Member

Posts: 2

Join Date: December 28, 2011

Recent Posts

Hello Juan,

After looking over it briefly I am wondering if it's referencing the name twice?

https://github.com/juanferrub/liferay-wordpress-importer/blob/master/portlets/WordpressImporter-portlet/docroot/WEB-INF/src/com/liferay/util/WordpressUtil.java#L613

Looks like it might be calling the user name (that was just set as the name) and the "nickName", "user.getUserId(), nickName"

Just a thought real fast.