【发布时间】:2015-04-05 08:00:07
【问题描述】:
我正在使用 MailChimp 创建一个基于 WordPress 提要的 RSS 到电子邮件活动。
但是,FEEDITEM:IMAGE 标签无法从我的帖子中获取特色图片...
我尝试了多种解决方案,包括专用插件(例如:https://wordpress.org/plugins/featured-images-for-rss-feeds/)和自定义的 feed-rss2.php(如此处所述:https://stackoverflow.com/questions/ask?title=mailchimp%20featured%20image)。
这是我的 HTML:
<table mc:repeatable="layout" mc:variant="1/1 Panel" bgcolor="#f6f6f6" align="center" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table class="table600" bgcolor="#FFFFFF" width="600" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-left:20px; margin-right:20px;">
<tr>
<td height="50"></td>
</tr>
<tr>
<td align="center">
<table align="center" class="table-inner" width="550" border="0" cellspacing="0" cellpadding="0">
*|FEEDBLOCK:http://louerunmanager.com/feed/|*
*|FEEDITEMS:[$count=1]|*
<!-- img -->
<tr>
<td align="center" style="display:block; line-height:0px; font-size:0px; border:0px;" class="img1" alt="img" width="550" height="190">
<img src="*|FEEDITEM:IMAGE|*">
</td>
</tr>
<!-- end img -->
<tr>
<td height="25"></td>
</tr>
<!-- title -->
<tr align="left" valign="top">
<td style="font-family: 'Open Sans', Arial, sans-serif; font-size:18px; color:#3b3b3b; line-height:30px; font-weight: bold;" mc:edit="1/1 panel title">*|FEEDITEM:TITLE|*</td>
</tr>
<!-- end title -->
<tr>
<td height="10"></td>
</tr>
<!-- content -->
<tr valign="top">
<td style="font-family: 'Open Sans', Arial, sans-serif; font-size:13px; color:#7f8c8d; line-height:26px;" mc:edit="1/1 panel content">*|FEEDITEM:CONTENT_TEXT|*</td>
</tr>
<!-- end content -->
*|END:FEEDITEMS|*
*|END:FEEDBLOCK|*
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
这里是提要:http://louerunmanager.com/feed/。
如 MailChimp 的文档中所述,FEEDITEM:IMAGE 应该显示 media:content 的内容,即特色图像...
有什么想法吗?
谢谢!
【问题讨论】: