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

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x