Post No.4
10 November
Easily add anything to the post content based on conditonal tags.
/**
* Snippet Name: Add html to post content
* Snippet URL: https://www.wpcustoms.net/snippets/add-html-to-post-content/
*/
function wpc_add_post_content($content) {
if(!is_feed() && !is_home()) {
$content .= ‘
Thanks for reading!
‘;
}
return $content;
}
add_filter(‘the_content’, ‘wpc_add_post_content’);