ユーザーに表示されるRSSフィードのスタイルを設定しようとしています。つまり、投稿の画像、WYSIWYGエディターのテキスト、テーマの一部であるボタンだけが表示されます。
これがsingle.phpテンプレートファイルのボタンです。
<div class="bottomgift clearfix">
<a target="_blank" rel="nofollow" href="<?php getCustomField('Affiliate Link'); ?>" class="go-button">Go</a>
</div>
RSSフィードのスタイルを設定するためにこれらすべてを追加するにはどうすればよいですか?
Functions.phpで
function modRSS($content) {
global $post;
if ( has_post_thumbnail( $post->ID ) ){
$content = '<div>' . get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' . $content;
}
$content = $content . '<a href="' . getCustomField('Affiliate Link') . '">Go</a>';
return $content;
}
add_filter('the_excerpt_rss', 'modRSS');
add_filter('the_content_feed', 'modRSS');