Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Im using WP Alchemy to set up some custom meta boxes. Since these are being used for audio files, when I create a feed the data does not come in and i cannot create a podcast feed for them.

share|improve this question
add comment

1 Answer

Ok I got it

// Add the audio link to the feeds so we can podcast
function feed_customMeta($content) {
global $post, $id, $radioMeta;

  if ( !is_feed() )
    return $content;

 $getRadioLink = '<a href="'.$radioMeta->get_the_value('radioLink').'">Download Audio</a>';

  if( $getRadioLink)
    $content .= $getRadioLink;
    return $content;
}
add_filter('the_excerpt_rss', 'feed_customMeta');
add_filter('the_content_feed', 'feed_customMeta');
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.