Stupid php question
-
// add custom post content function add_post_content($content) { if(!is_feed() && !is_home()) { $content .= '<p>Copyright © '.date('Y').' '.bloginfo('name').'</p>'; } return $content; } add_filter('the_content', 'add_post_content');
The html source output is
myblog<p>Copyright © 2011 </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.