Custom content after each post

Author: admin
Publication date: May 5th, 2010
Category: How to

If you want to put custom content after each post just copy the following code and paste it in functions.php file:

function add_post_content($content) {
if(!is_feed() && !is_home()) {
$content .= ‘<p>This article is copyright &copy; ‘.date(‘Y’).’&nbsp;’.bloginfo(‘name’).’</p>’;
}
return $content;
}
add_filter(‘the_content’, ‘add_post_content’);

Job done :)