Forums

Adding custom fields to an RSS feed? (8 posts)

  1. vsp
    Member
    Posted 5 years ago #

    I want to have one of my custom fields display in the RSS feed. Is this possible? How would I do it?

  2. ia
    Member
    Posted 5 years ago #

    I'd like to find out about this as well. :)

  3. Kafkaesqui
    Moderator
    Posted 5 years ago #

    A lot more info would be helpful on this before a solution can be provided. Such as, what's in this custom field? Where in your feed do you want it to display? And how?

  4. olorin
    Member
    Posted 5 years ago #

    I need the same hack. I tried different things, resulting only in failure.

    Each post excerpt has a thumbnail associated with it. I would like to display the FULL thumb url in the feed like :
    <item>
    <image>http://www.domain.com/thumb_name.jpg</image>
    </item>

    My custom field key : image
    Custom field value: thumb_name.jpg

    By the way, this thumb is displayed in the_excerpt (in the loop)using this code:

    <?php the_excerpt(); ?>
    <center><?php if(get_post_custom_values('image')){
    foreach(get_post_custom_values('image') as $value) { ?>
    <a href="<?php the_permalink() ?>"><img src="http://www.domain.com/vids/<?php echo $value; ?>" class="br" alt="<?php the_title(); ?>" /></a>
    <?php } ?>
    <?php } ?>
    </center>

    Do you know why it doesn't appear at all in the feed under
    <description><![CDATA[ ]]></description>

    Thank you for your time

  5. Xander
    Member
    Posted 5 years ago #

    You can squeeze the same code into wp-rss*.* just about... although I happen to use the c2c_get_custom function (google it).

  6. Korak
    Member
    Posted 4 years ago #

    I'd love to see the ability to include custom fields in the feed.

    Still no plugin to make this possible?

  7. ccoupe
    Member
    Posted 4 years ago #

    Does the RSS 2.0 spec allow for custom fields and do all the feed clients and aggregators support your particular custom field ?

  8. Korak
    Member
    Posted 4 years ago #

    I was thinking maybe there was a plugin allowing you to include the custom field data towards the end of each post, just like tags are optional to include in the feed with the UltimateTagWarrior plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic