Trying to add an item in the RSS-feed, post ID problems
-
Hi,
I’m trying to add an extra item to the RSS-field, since I would like my Thumbnails (placed in extra fields) to be in it.
I’m using this code, yet it doesn’t seem to work and I have no idea why:
function thumb_rss() { $thumbnail = get_post_meta(get_the_ID(), 'Thumbnail', true); ?> <thumbnail><img src="<?php echo $thumbnail; ?>" /></thumbnail> <?php } add_action('rss2_item', 'thumb_rss');
What is it that i’m doing wrong?
- The topic ‘Trying to add an item in the RSS-feed, post ID problems’ is closed to new replies.