Hello. We are running Mailwizz version 1.8.6. We have been using XML FEED from our https://clarion.causeaction.com/feed/ site for a long time with good results.
But I just tried to add Images with this code.
And we see the empty image with the message "The linked image cannot be displayed".
The email source has, where the image should be: src="XML_FEED_ITEM_IMAGE" .
Our Feed has the namespace reference media:content as in below:
And in the PHP file CampaignXmlFeedParser.php I see the code:
Which I thought would parse the media:content tag. But it does not.
How can I make this work?
Must I somehow alter the code to parse the url attribute of the media:content tag?
Thank you
But I just tried to add Images with this code.
Code:
<a href="[XML_FEED_ITEM_LINK]"><img height="100" src="XML_FEED_ITEM_IMAGE" width="100" /> </a>
And we see the empty image with the message "The linked image cannot be displayed".
The email source has, where the image should be: src="XML_FEED_ITEM_IMAGE" .
Our Feed has the namespace reference media:content as in below:
Code:
<media:content url="https://i2.wp.com/clarion.causeaction.com/wp-content/uploads/2020/09/Supreme-court-Ginsburg-death-1200x790-1.jpg?fit=1024%2C674&ssl=1" medium="image" />
And in the PHP file CampaignXmlFeedParser.php I see the code:
Code:
if (empty($itemMap['image']) && !empty($namespaces['media'])) {
$media = $item->children($namespaces['media']);
if (!empty($media) && isset($media->content)) {
$itemMap['image'] = (string)$media->content;
}
Which I thought would parse the media:content tag. But it does not.
How can I make this work?
Must I somehow alter the code to parse the url attribute of the media:content tag?
Thank you