Last active
November 11, 2017 22:44
-
-
Save braddalton/22e1f467561c9ce0c5ee to your computer and use it in GitHub Desktop.
Add Banner Image After RSS Feed Excerpt in WordPress http://wpsites.net/wordpress-tips/add-banner-image-after-rss-feed-excerpt/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Add Advertising Banner After RSS Feed Excerpt | |
add_filter('the_excerpt_rss', 'wpsites_feed_advert_wpsites', 25 ); | |
add_filter('the_content_feed', 'wpsites_feed_advert_wpsites', 25 ); | |
function wpsites_feed_advert_wpsites($content) { | |
$banner = 'Your Image HTML'; | |
$content = $content. $banner; | |
return $content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment