Skip to content
WJunction - Webmaster Forum

WordPress help insert content on every post in wordpress

Status
Not open for further replies.
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.

About the author

X
Active Member · Joined
988
Messages
189
Reactions
43
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom