Enter your keyword

Blog

How to insert custom content after each post

// add custom post content
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');

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.