From 2db2b671f23175462b7222f9e399e09dfc24aa93 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Mon, 2 Apr 2012 01:06:27 +0200 Subject: [PATCH] fix #293: pelican-importer for Wordpress doesn't add tags --- pelican/tools/pelican_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index b34fd9a5..57c4fc22 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -34,7 +34,7 @@ def wp2fields(xml): categories = [cat.contents[0] for cat in item.fetch(domain='category')] # caturl = [cat['nicename'] for cat in item.fetch(domain='category')] - tags = [tag.contents[0].title() for tag in item.fetch(domain='tag', nicename=None)] + tags = [tag.contents[0] for tag in item.fetch(domain='post_tag')] yield (title, content, filename, date, author, categories, tags, "html")