WordPress tip: Insert custom content after each post
Apr 16, 2010 CSS, HTML, JavaScript, PHP, Tutorials, Wordpress
You just have to paste the following code into your functions.php and save the file. Once done, custom content will be inserted below each of your posts. function add_post_content($content) { if(!is_feed() && !is_home()) { $content .= '<p>This article is copyright © '.date('Y').' '.bloginfo('name').'</p>'; } return $content; } add_filter('the_content', 'add_post_content'); Thanks to Jeff Starr for the great snippet! By the way, if you need any kind of WordPress help I’m happy to inform you that I’m starting to work freelance.
Buy & Sell Flash Files – Flash Marketplace
Tags: contribute, CSS, forum, JavaScript, PHP, posts, purchase, repeat, Tutorials, wordpress-discounts







Leave a Reply