2015-02-05 58 views
1

我使用MailChimp基於WordPress提要創建RSS-to-Email活動。在MailChimp RSS-to-Email活動中使用WordPress特色圖片

然而,FEEDITEM:圖片標籤沒有從我的帖子搶特色圖片...

我已經嘗試了幾種解決方案,包括專用插件(像這樣的:https://wordpress.org/plugins/featured-images-for-rss-feeds/)和定製的飼料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:圖片應顯示的媒體內容:內容即特色圖片...

任何想法?

謝謝!

回答

0

The | FEEDITEM:IMAGE || RSSITEM:IMAGE |從圖像抓取<media:content />的RSS提要,而不是url

相反包括mailchimp標籤,因爲它是在實施例中的代碼的:

<img src="*|FEEDITEM:IMAGE|*"> 

嘗試通過本身或內部的

<td>*|FEEDITEM:IMAGE|*</td> 

<div>*|FEEDITEM:IMAGE|*</div> 

放置標籤它爲我工作。 查看Mailchimp博客文章中的示例:https://blog.mailchimp.com/rss-to-email-enhancement-for-publishers/

相關問題