• Resolved dponce80

    (@dponce80)


    Hello. I’m syndicating my content to a large network, and they’re asking me to customize some elements of my feed. I’ve managed everything except this: they want me to include a <Website:thumbnail> [IMG SRC TO THUMBNAIL] </Website:thumbnail> so that every one of my items carries a thumbnail that can be recognized by their system and displayed on their page properly. I don’t know how to get the thumbnail code there. I tried pasting it in <php the_excerpt; ()>, and it worked, but simultaneously broke my <description></description> (it inserted the thumbnail there as well.

    I also tried to use custom fields, but everything gets wrapped in
    <ul> and <span> tags, which wouldn’t work. So, my question is how to get that filepath in there? Anyone can help? Please! 🙂

Viewing 1 replies (of 1 total)
  • I’ve been in contact with dponce through email, and though I believe he has his solution, I hate unresolved threads in the forums…

    > Assuming a key of ‘thumbnail’ (for custom field),
    > try the following code in your script file:

    <?php $thumbnail = get_post_custom_values('thumbnail'); ?>
    <NewsAndReviews:thumbnail><?php echo $thumbnail[0]; ?></NewsAndReviews:thumbnail>

Viewing 1 replies (of 1 total)

The topic ‘Custom RSS tags’ is closed to new replies.