Custom Field in RSS
-
Hi All
I am trying to ad a custom field to my RSS feed. The custom field is a featured image that sits above the post title.
I’ve modified my feed-rss2.php as follows:
<?php // added to show custom image ?> <?php $image = get_post_meta($post->ID, 'feature_image', 1) ?> <?php if ($image != ''): ?> <img src="<?php echo $image; ?>" /> <?php endif ?>
And when I view the source of the feed, the image is there, HOWEVER it doesn’t show up in the reader. Did I miss something?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Field in RSS’ is closed to new replies.