Advertisement
Guest User

Untitled

a guest
Aug 8th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. function modRSS($content) {
  2.    global $post;
  3.  
  4.    if ( has_post_thumbnail( $post->ID ) ){
  5.       $content = '<div>' . get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' . $content;
  6.    }
  7.  
  8.    $content = $content . '<a href="' . getCustomField('Affiliate Link') . '">Peek</a>';
  9.  
  10.    return $content;
  11. }
  12.  
  13. add_filter('the_excerpt_rss', 'modRSS');
  14. add_filter('the_content_feed', 'modRSS');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement