Home / functions.php / Custom post content
  • How to Custom post content

    no thumbnail sorry: Custom post content

    Adding this to your functions.php file in your wordpress theme will add content after each post. This can be something like a copyright or ad etc.

    ( click code to copy )

    wordpress snippet : PHP

    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');

    ( WordPress codex functions, hooks, in this snippet. )

    home, the_content, bloginfo, add_filter, is_feed, is_home,