If you’re a blogger living on ad revenue, you might want to optimize your placement to the hilt. One way of doing this is to use the middle article ads on your WordPress posts. Such advertisements show in the middle of your content and can display huge increase in your ad impressions and earnings
To insert middle article ads in WordPress (ads that display in between your post content), you have a few different options depending on how comfortable you are with technology and whether or not you use a page builder or a theme that supports ads.
✅ Method 1: Add a Plugin (No Code)
The easiest way is to use a plugin that lets you automatically insert ads in posts.
Recommended Plugins:
Ad Inserter (Free & Pro)
Advanced Ads
WP QUADS
Steps with Ad Inserter (Free):
Ad Inserter plugin by visiting Plugins > Add New.
Go to Settings > Ad Inserter.
Select a block (i.e., Block 1), and then paste your ad code (i.e., from Google AdSense).
Under Insertion, choose:
‘Paragraph’ to be inserted after paragraph 3 (or whatever).
“Posts” for where to insert.
Save settings.
This will place the ad block halfway through your article.
✅ Method 2: Adding Manually Using Theme Functions.php (Advanced)
If you’re comfortable with PHP, put your ads right in the post content.
Example code:
function insert_ad_in_middle($content) { if (is_single() && !is_admin()) { $paragraphAfter = 3; // after which paragraph to insert ad $ad_code = 'YOUR AD CODE HERE'; $paragraphs = explode('', $content); foreach ($paragraphs as $index => $paragraph) { if (trim($paragraph)) { $paragraphs[$index] .= ''; } if ($index == $paragraphAfter) { $paragraphs[$index] .= $ad_code; } } return implode('', $paragraphs); } return $content; } add_filter('the_content', 'insert_ad_in_middle');
YOUR AD CODE HERE: Replace it with your ad script, such as Google AdSense code.
✅ Method 3: With a Page Builder (such as Elementor or WPBakery)
If you use a builder:
Start by opening your single post template.
Insert an HTML or a shortcode block in the middle of the content.
Paste your ad code.
You can have as many middle article ads in your articles as you want, but my suggestion is to keep a max of 3-4 middle article ads in your content.
If you are looking to increase the CTR of your ads, I suggest moving the manual ads after the 2nd, 5th, and 10th paragraphs. Note: These figures might change according to the site layout and the length of the article
Hope this article will help you to add middle article ads to your WordPress website.