I have created a custom feed that shows custom fields in posts. Here's the loop that creates each instance of parent/child in the outputted field:
<?php while (have_posts()) : the_post(); ?>
<item>
<headline><?php the_title_rss() ?></headline>
<image_1><?php echo get_post_meta($post->ID, 'image_1', true); ?></image_1>
<image_2><?php echo get_post_meta($post->ID, 'image_2', true); ?></image_2>
</item>
<?php endwhile; ?>
Now this works fine, but it would be really cool if the custom fields weren't hard coded in. Is there a way to make the loop generate the custom fields for each parent (item) based on what's in the meta table of the database based on post id? I guess it would be some kind of loop inside a loop? Any help/ideas appreciated.