I'm trying to add a link to the bottom of my wordpress RSS Feed but my getCustomField('Affiliate Link') function is echoing the value instead of returning it.. how do I get it to return instead?


PHP Code:
    function modRSS($content) {
       global 
$post;
     
       if ( 
has_post_thumbnail$post->ID ) ){
          
$content '<div>' get_the_post_thumbnail$post->ID'full', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' $content;
       }
     
       
$content $content '<a href="' getCustomField('Affiliate Link') . '">Peek</a>';
     
       return 
$content;
    }
     
    
add_filter('the_excerpt_rss''modRSS');
    
add_filter('the_content_feed''modRSS');