custom_contentFor a client’s blog website I need to add a para automatically after each single post, found a snippet from Jeff Starr using a WordPress hook. Here’s how to do.

add_filter('the_content', 'add_post_content')
function add_post_content($content) {
	if(!is_single()) {
		$content .= '<p>YOUR CONTENT GOES HERE'</p>';
	}
	return $content;
}

If you enjoyed and find helpful this article, please consider sharing it.