Home › Forums › General Issues › Image via custom field in custom rss feed returning url instead of image. › Reply To: Image via custom field in custom rss feed returning url instead of image.
It returns the url as well… Maybe the problem is not with the line but with the code in the custom rss template (maybe the excerpt strips the img tag?)
Here’s the code:
<item>
<title><?php the_title_rss();?>, <?php the_field(region); ?></title>
<link><?php the_permalink_rss(); ?></link>
<pubDate><?php the_field(fecha_de_inicio); ?></pubDate>
<guid isPermaLink="false"><?php the_guid(); ?></guid>
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php if ( strlen( $post->post_content ) > 0 ) : ?>
<content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded>
<?php else : ?>
<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
<?php endif; ?>
<?php rss_enclosure(); ?>
<?php do_action('rss2_item'); ?>
</item>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.