Last active
December 31, 2015 05:39
-
-
Save shemul49rmc/7942133 to your computer and use it in GitHub Desktop.
Add Custom Content After All WordPress Posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add Custom Content After All WordPress Posts By http://goo.gl/ht6fZo | |
*/ | |
function add_after_post_content($content) { | |
if(!is_feed() && !is_home() && is_singular() && is_main_query()) { | |
$content .= '<p>YOUR CONTENT AFTER POST</p>'; | |
} | |
return $content; | |
} | |
add_filter('the_content', 'add_after_post_content'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment