WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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.