Support

Account

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>