Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

How to Insert custom content after each post

This trick can be good if you want to tell your visitors to subscribe at your blog or wanna advertise about something below your post.

I would love if you use this trick for subscribe new visitors to your blog as it will look fair and also give a decent look to your site :)

To do so just open functions.php and add below lines of code :

function add_post_content($content) {
	if(!is_feed() && !is_home()) {
		$content .= '<p>Enjoyed this article then Subscribe to <a href="http://wpden.net/feed">WordPress Den</a></p>';
	}
	return $content;
}
add_filter('the_content', 'add_post_content');

Just edit the content at line 3 to what ever you want.

Subscribe via Email

Share this:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • Email

Related

March 19, 2011 Ritesh Sanap WordPress Content, functions.php, Tricks, wordpress, wordpress hacks, WordPress Tips

Post navigation

Previous Previous post: Easy login URL
Next Next post: How to turn off Post Revisions

Currently Trending

  • Windows Vista CD key
  • ZooZooo - Vodafone Logos
  • How to download Specific parts of YouTube videos
  • How to Increase Dropbox upload speed
  • How to Change the Welcome/Login Screen in Windows XP ?
  • HORIZONTAL AND VERTICAL SPACING
  • Hide or Show Label Count In Blogger
  • Free Online Angry Birds game
  • h4x0r ( Hacker ) - Blogger Template
  • Random Post Widget for Blogger

Random Posts

How to display Custom message on Registration Page

November 21, 2012 By Ritesh Sanap Leave a Comment

Some Amazing Facts – Unknown Truths – Part 1

July 8, 2008 By Ritesh Sanap Leave a Comment

Make a Navigation Bar with Automatic Highlighted Current Links

April 2, 2010 By Ritesh Sanap Leave a Comment

Samanta Blogger Template

November 30, 2010 By Ritesh Sanap Leave a Comment

Record – blogger Template

June 24, 2010 By Ritesh Sanap 1 Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2021 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.