Get fresh WordPress Content delivered in your inbox with warpspeed!
learn wordpress wplift wordpress rocket

Struggling with how to insert ads within your post content in WordPress? This is a common strategy that big publishers use to get people to pay more attention to display ads, but it can be a little tricky to set up with WordPress.

Here's the good news:

You have much better options than trying to manually insert an ad in every single post that you write. While this method kind of works at first, it's a massive pain if you decide that you want to change the ad in the future.

With the right plugin, you can automatically inject ads into your post content at one or more locations that you choose. For example, you could tell the plugin to automatically insert an ad after the third paragraph of a post. Or, to keep things different, you can even randomly insert ads into your content.

In this post, I'll share quick tutorials for two different plugins that can help you insert ads into WordPress posts for free.

Best of all, both of them are easy to set up and don't require any coding knowledge.

How To Insert Ads Into WordPress Posts With Ad Inserter

Ad Inserter is an awesome free plugin that gives you a ton of flexibility for inserting ads into your WordPress posts.

With it, you can automatically insert ads before or after:

  • Your entire post
  • A specific paragraph or a random paragraph
  • The post's comments
  • Any HTML element on the page

And you also have a bunch of other more niche placements.

Ad Inserter works with AdSense, Amazon Associates, and any other types of ads that you might want to use.

To get started, make sure to install and activate the free Ad Inserter plugin. Then, here's how to use it on your WordPress site…

Step 1: Create A New Ad Block

Ad Inserter works by using something called ad blocks. An ad block is basically a unique ad, or group of ads, that you want to display somewhere on your site.

While you can put multiple ads in a single ad block, you'll probably end up only putting one ad per block if you're planning to insert ads into WordPress posts (because you don't want to overwhelm your readers with too many ads).

In the free version of the plugin, you can use up to 16 different ad blocks.

To create your first ad block, go to Settings → Ad Inserter. Then, paste your ad's HTML in the code editor:

how to insert ads within your post content in WordPress

Step 2: Choose Insertion And Alignment

Below the code editor, you should see two drop-down menus for Automatic Insertion and Alignment and Style.

These two drop-downs are super important because they're what allow you to:

  • Automatically insert ads into your WordPress post content
  • Control exactly where those ads appear

First, select where in your posts you want to insert your ads. One common approach would be to automatically insert an ad after the second paragraph in every post.

To do that, you'd select the After Paragraph option from the drop-down. Then, a Paragraph(s) option should appear where you can select which paragraph you want to place the ad after:

ad inserter interface

Once you've chosen the automatic insertion location, you can use the Alignment and Style drop-down to change the alignment of your ad.

Step 3: Choose What Content To Insert Ads In

By default, Ad Inserter will automatically inject the ads into every single post on your site. If you want to change that functionality, you can:

  • Use the drop-down to individually enable or disable the ads (this gives you a meta box on each post to help you control the ads)
  • Turn on ad injection for other content types, like WordPress pages

Once you've finished, make sure to click the Save All Settings button.

And just like that, you should see your ad inside your WordPress content!

insert ads into wordpress content example

If you want to insert multiple ads into your content at different spots, you can repeat the same process for a different ad block/automatic insertion location.

How To Insert Ads Into WordPress Posts With Advanced Ads

After Ad Inserter, Advanced Ads is the second most popular ad management plugin at WordPress.org.

Advanced Ads lets you create unlimited ads in the free version, whereas Ad Inserter limits you to 16 ad blocks. But the con is that I don't find the interface quite as intuitive for this specific use case.

If being able to create unlimited ads piques your interest, here's how to use Advanced Ads to insert ads within your post content in WordPress.

To get started, make sure that you've installed and activated the free Advanced Ads plugin on your site.

Step 1: Create A New Ad

To create the ad that you'll inject into your content, go to Advanced Ads → Ads to launch the ad setup wizard.

Most of the time, you'll want to choose the option for Plain Text and Code. But you can consider the other options if they fit your needs better:

advanced ads interface

Then, click Next.

On the next screen, enter your ad code into the box and then click Next again:

Step 2: Choose What Content To Display Ads On

On the next screen, choose Hide the ad on some pages under the Display Conditions area.

Then, select Post Type from the New condition drop-down and click add.

You should see a new Post Type condition. Click the Posts button so that it reads "Post Type is Posts":

Click Next once you've done that*.

*You can add additional targeting conditions if you want. But for this use case, I don't think there's any need.

Step 3: Choose Ad Placement

Finally, use the icons to choose where to display your ad. I recommend the Content option:

placement location

That will open up a dialog box where you can choose which paragraph to display the ad after:

And just like that, you should see the ad on your site:

As you can see, the end result is pretty much identical to Ad Inserter. The only difference is a little less margin on the bottom, which you can easily fix with some positioning tweaks or custom CSS.

Enjoy More Flexible Ad Placements

And there you have it! Two easy, and free, ways to automatically insert ads into your WordPress content.

And here's the great thing about both of these plugins:

If you ever need to change ads in the future, you just need to edit the ad once in the plugin's interface and that change will affect every post on your site.

 

Have any other questions about how to insert ads into WordPress posts? Leave a comment and we'll do our best to help out!

Published:

Last updated on:

Colin Newcomer is a freelance writer and long-time Internet marketer. He specializes in digital marketing, WordPress and B2B writing. He lives a life of danger, riding a scooter through the chaos of Hanoi. You can also follow his travel blog.

Join the conversation!

Join 40,000 WordPress Astronauts
AND GET OUR LATEST CONTENT IN YOUR INBOX WITH WARPSPEED

We will never spam you.
close-link
siteground coupon
Get 60% Off the No. 1 WordPress Hosting!
close-image