WordPress help insert content on every post in wordpress

Status
Not open for further replies.

xiona_marie

Active Member
988
2010
189
10
Code:
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');

saw this code in the internet and it works but when i click on what ever categories in my site. the $content shows even without clicking the post.
 
Status
Not open for further replies.
Back
Top