Get my FREE ebook:
"SEO FOR BLOGS: The Ultimate Guide"
Limited Time Offer!

How To Insert Custom Content After Each Post On Your WordPress Blog

There are many reasons why you might want to insert some custom content right after each post. However, you might now want to manually insert in it the right place and edit several files to do so.

An easy way to insert custom content after each post of your WordPress blog is to simply paste the following code in the functions.php file of your WordPress theme:

1
2
3
4
5
6
7
8
9
10
11
12
13
function add_post_content_footer($content) {
	if(!is_feed() && !is_home()) {
		$content .= 'INSERT CUSTOM CONTENT HERE';
	}
	return $content;
}
add_filter('the_content', 'add_post_content_footer');
Commenting Contest
If you enjoyed this article, Get email updates
(It's Free)
Sté Kerwer
Post written by: Sté Kerwer
Bonjour from France. My name is Stéphane Kerwer and Dukeo.com is my blog. I do most of the heavy lifting in here but from time to time, you may see some guest posts. If you wish to receive updates about Dukeo, subscribe to RSS Feed, follow Dukeo on twitter or become a fan on Facebook.
Comments are closed.
Comments on this post are currently closed.
arrow