mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #294 from tshepang/master
pelican-importer for Wordpress doesn't add tags
This commit is contained in:
commit
c234005f1c
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def wp2fields(xml):
|
||||||
categories = [cat.contents[0] for cat in item.fetch(domain='category')]
|
categories = [cat.contents[0] for cat in item.fetch(domain='category')]
|
||||||
# caturl = [cat['nicename'] 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")
|
yield (title, content, filename, date, author, categories, tags, "html")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue