Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #452 from 71squared/master

mod_import_wordpress: Also import the original URL
  • Loading branch information...
commit 91562d653ea5cc803c5a908ecb31c855cd65ed16 2 parents f0578fb + ab0a5cf
@arjan arjan authored
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,6 +102,7 @@ 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)),
@@ -109,6 +110,7 @@ import_wxr_item(Item, {Data=#datamodel{resources=R,edges=E}, Base, Context}) ->
[{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)},
Please sign in to comment.
Something went wrong with that request. Please try again.