How to add any content below every post automatically?

banner-image

Sometimes we need to add some content or some kind of Post Signature below of every post. We can do that by adding the content every time when we create a new post.

But adding the same content every time is a bit boring and tiring job.

This boring task can be skipped by using a simple PHP function. You just need to add the below function on your active theme’s functions.php file.

// Add content or signature below every post
 
function wpb_after_post_content($content){
if (is_single()) { 
    $content .= 'Your content / signature will goes here'; //replace with your content
}
    return $content;
}
add_filter( "the_content", "wpb_after_post_content" );

 

That’s it. Now you will see your mentioned content below of every post.

Tags:

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x