Add html to post content
Easily add anything to the post content based on conditonal tags.
/** * Snippet Name: Add html to post content * Snippet URL: https://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');