Permalink
Browse files

Merge pull request #452 from 71squared/master

mod_import_wordpress: Also import the original URL
  • Loading branch information...
2 parents f0578fb + ab0a5cf commit 91562d653ea5cc803c5a908ecb31c855cd65ed16 @arjan arjan committed Nov 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 modules/mod_import_wordpress/support/import_wordpress.erl
View
2 modules/mod_import_wordpress/support/import_wordpress.erl
@@ -102,13 +102,15 @@ import_wxr_item(Item, {Data=#datamodel{resources=R,edges=E}, Base, Context}) ->
Name = "wordpress_" ++ z_convert:to_list(element_content("wp:post_id", Item)),
Body = element_content("content:encoded", Item),
Summary = element_content("description", Item),
+ Link = element_content("link", Item),
IsPublished = map_wp_status(element_content("wp:status", Item)),
PostParent = z_convert:to_integer(element_content("wp:post_parent", Item)),
Props =
[{title, Title},
{body, wp_embed_tags(Body)},
{summary, Summary},
+ {wp_link, Link},
{is_published, IsPublished},
{custom_slug, true},
{slug, element_content("wp:post_name", Item)},

0 comments on commit 91562d6

Please sign in to comment.