Replies: 5 comments 4 replies
-
Hard to know without further information. It may be the case that images are placed into the metadata only, if you have attached images but there is no reference to the image within the article (in the wordpress export). Is it possible to share a relevant article, i.e. the entry within the XML export and the resulting content (MD or RST) for that article? |
Beta Was this translation helpful? Give feedback.
-
Sure, here's the XML for the export of one article:
and the markdown that pelican generated for that same article:
|
Beta Was this translation helpful? Give feedback.
-
Right, this was from a photography blog where the only content in a post
was an image.
…On Mon, Oct 17, 2022 at 2:27 PM Deniz Turgut ***@***.***> wrote:
Well, there is no content in that item, so no surprise it ended up empty.
Also only (vague) reference to an image I can see is:
<wp:postmeta>
<wp:meta_key><![CDATA[_thumbnail_id]]></wp:meta_key>
<wp:meta_value><![CDATA[948]]></wp:meta_value>
</wp:postmeta>
I guess 948 is referring to some image, hopefully also identified in the
export XML. But currently pelican-import does not know how to handle this.
—
Reply to this email directly, view it on GitHub
<#3049 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAARLSOQHYXTO76ETGP3AF3WDXADFANCNFSM6AAAAAARAMVSBA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm happy to provide the full XML export if that would be helpful?
Its about 1.7MB in size.
…On Mon, Oct 17, 2022 at 2:50 PM Deniz Turgut ***@***.***> wrote:
Yeah, that's a different way of adding images and looks like pelican-import could use an update but that requires some example XML export: i.e. to identify which image 948 refers to and insert it into the content.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
year6.WordPress.2022-09-18.xml.gz OK, I'm attaching a gzipped version of the full XML. |
Beta Was this translation helpful? Give feedback.
-
Greetings!
I've got pelican-4.5.4 installed on a Fedora Linux system.
I've got several Wordpress blogs which have made heavy use of attached images in their posts (some of them are dedicated photography blogs where the entire post is literally just a single attached image with no other text). I'd like to import each of these blogs into Pelican such that the generated "output" for the posts automatically includes the attached image(s), but I'm not quite understanding how to make it work. I thought the --wp-attach option would make the magic happen:
It did download all of the images (great), but the resulting generated HTML makes no reference to the images, and all of the posts are basically empty when viewed in a web browser. The help for the --wp-attach option says "Files will be added to posts as a list in the post header and links to the files within the post will be updated." but I don't think that's actually happening. I see all of the downloaded images sitting under the content directory (content/year6/wp-content/uploads/...) but none of them made it over to the output directory.
What am I missing here? What did I do wrong?
thanks!
Beta Was this translation helpful? Give feedback.
All reactions