• // add custom post content
    function add_post_content($content) {
    	if(!is_feed() && !is_home()) {
    		$content .= '<p>Copyright &copy; '.date('Y').'&nbsp;'.bloginfo('name').'</p>';
    	}
    	return $content;
    }
    add_filter('the_content', 'add_post_content');

    The html source output is
    myblog<p>Copyright &copy; 2011&nbsp;</p>

    and normal:

    myblog
    Copyright © 2011

    WHat is wrong with my php ?

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Stupid php question’ is closed to new replies.