Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Add Signature or Ads after Post Content in WordPress

Do you want to add a signature or advertisement after your blog post content in WordPress? By default, WordPress does not come with an easy way to display signature or ads after post content. In this article, we will show you how to easily add signature ads after post content in WordPress.

How to add signature or ads after post content in WordPress

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Method 1: Display Ads After Post Content Using Plugin

First thing you need to do is install and activate the Insert Post Ads plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation you need to visit Post Adverts » Settings page to configure plugin settings.

Insert Post Ads settings

On the settings page, you need to select where you want to enable post ads. You can enable it for posts, pages, and custom post types.

Don’t forget to click on the save settings button to store your changes.

Next, you need to go to Post Adverts » Add New to create your signature or advertisement.

After Post Ad

Simply provide a title for this particular signature or after post ad. In the box below, paste your ad code, signature, or any HTML or text you want to display.

Next, you need to select ‘After content’ next to ‘Display the advert’ option. You also need to enter 1 in the field next to it.

Don’t forget to click on the publish button to make your ad available on your website.

That’s all, your after post ad or signature is now live on your website. You can visit a post or page on your site to see it in action.

Preview signature ad

Method 2: Manually Add Signature Ads After Post Content

This method requires you to add code to your WordPress files. If you haven’t done this before, then please take a look at our beginner’s guide on adding code in WordPress.

First you need to add this code to your theme’s functions.php file or a site-specific plugin.

// Add signature or ad after post content

function wpb_after_post_content($content){
if (is_single()) {	
	$content .= 'Your signature or ad code goes here';
	return $content;
add_filter( "the_content", "wpb_after_post_content" );

Don’t forget to replace the value of $content with your ad code, image, or signature you want to display.

You can now visit your website to see your signature ad in action.

We hope this article helped you add signature and ads after post content in WordPress. You may also want to see our guide on the best ad management plugins and solutions for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

22 CommentsLeave a Reply

  1. I added this code to my site specific plugin and it isn’t showing up in my posts. Do I add the text content I want to appear in place of every $comment?

    • You would want to ensure you are closing the content in single quotes and after the = in line 5 of the code method.


  2. I am trying to use this to add a signature to my posts. I uploaded my image to my media library then grabbed the image source code and pasted that into the box “Advert Code”. However, just the code displays on my posts and no image. How do I correctly generate a code so that my image displays? Thanks!

  3. Thanks for the post It worked for me, how ever how can i add a title to it? i am using the second method on my site to display ads, i want to add a title to it like, “others are reading this” how can i achieve this?

    • You would need to add the html for what you are using on your theme for titles in terms of h tags to add a title using that manual method.


  4. Hi,
    Thanks that is really interesting but it does just add the text to the screen output, can that signature be automatically added to the contents that is written to the table.

  5. I’m using code snippet and inserting the signature code into the snippet editor but when I add the image url into the content – it just shows as a link written out into text. How do I add image link into content block so it shows as an image?

  6. Hello, trying to get this to work on images i have uploaded to us as ads?? can anyone help please

  7. i have this website link is
    i want to stop the ajax loading but i dont know how to do that can any one help me with that
    i really appreciate it..

  8. Question: Insert Post Ads, according to the WordPress plugin page says it hasn’t been updated in two years and is only compatible up to WordPress 4.3.8.– so will you be updating it so can be used?

  9. Hy WPBeginner thanks for sharing, I like this website that’s a help me for building blog with WordPress CMS. I want to ask for tutorial make menu accordion as above (BEGINNER’S GUIDE FOR WORDPRESS / Start your WordPress Blog in minutes)

    please tell how to make, thanks guys

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.