How to Display Ad Blocks in Specific Posts in WordPress?

How to Display Ad Blocks in Specific Posts in WordPress?

Without a doubt, the best method of earning revenue from your website is by displaying advertisements. The number of users you have on your website, the better ad revenue you will generate. Some ad agencies pay you as per the clicks on the ad banners while others just consider the number of users you have.

Though it is the best medium for monetizing your website is by advertisements; still, it is necessary to enhance its effectiveness by placing the correct ads for correct audience. In addition to that, the location of the ad matters as well. Sometimes the user places the ad on the top of the screen which goes unnoticed by the user, and there are more changes that the user won’t bother visiting that ad.

Most of the people place the ads in between the content so that it can be noticed by the user easily. This will not only help you in enhancing the effectiveness of the ad but will boost the per click ratio as well. However, you need to make sure that you enter the right amount of advertisements or else they could deviate the user from the content they were looking for and may obstruct their concentration.

You can easily avoid this deviation by limiting the ads on your post. However, you can enhance the effectiveness of the ad by displaying them on the related pages.

Below we mention the complete guide on how you can display ad blocks in specific posts.

Step 1

One of the best features of WordPress is that it comes with tons of plugins that you can use to make your tasks uncomplicated. You need to install a plugin called as Adsanity which is an ad management plugin that you need for this process. To install this plugin, you need to download the zip file from their website.

Once you have downloaded it, you need to open your admin dashboard and navigate to the Plugins > Add New page. Here you need to press the Add New button from the top and upload the plugin. After successful installation, press the Activate Plugin link to start using it.


Step 2

Once you have activated the plugin, it is time to create an ad using it. Head over to the Adsanity > Create Ad page which will open a new window to create your ad. The first thing you need to do is enter the title for the advertisement and decide the type of advertisement between hosted ad or the third party ad.

If you are going to choose the third-party ads, then you need to open the External Ad Network tab. Similarly, if you want to create a new ad from the plugin, then you need to open the Ad Hosted On-Site tab.

Step 3

Upon opening the desired tab, you need to select the size of the ad from the drop-down menu. In the Ad details section, select whether you want to open the ad in a new window or not. Afterwards, you need to obtain the ad code and paste it into the desired field. Once you are done with all the necessary details, you can either publish the ad right away, or you can set a time to schedule it.

Step 4

Now you have created the ad for your site; you need to add it to the specific post to make it work. To add it to a post, you need to head over to the WordPress admin dashboard and open the Posts> All Posts page. Here you can see all the posts you have created, but you need to find the one in which you want to insert your ad and press the Edit button corresponding it.

In the Visual tab, you need to click on the Insert Ad button and choose the ad which you created earlier. After selecting, press the Insert button, and you will notice a shortcode in your post. Make sure to press the Save button to keep all the changes.

Manually Adding Ads

Step 1

There is another method where you can manually add the ad block of specific posts using a shortcode created by Adsanity. The first thing you need to do is navigate to the WordPress admin area and visit the Adsanity> Manage Ads page where you will witness all the advertisements you have created to date.

Step 2

Here you can see different tabs providing information about the ads including title, dimensions, and tags, but you need to look at the Shortcode tab. Find the advertisement which you want to insert in the post and press the Shortcode button corresponding it to copy the code.

Step 3

Now you need to edit the Post Editor screen and paste the shortcode wherever you want your ad to display. Don’t forget to press the Save or Publish button to keep the changes. You can now visit your website to check your ad.

This was the complete process of showcasing the ad blocks in specific posts using the Adsanity plugin. If you face any issues in using this plugin, then there is another similar plugin that you can use as its alternative.


The AdPress is another premium ad management plugin that assists the user in managing all the advertisements on your WordPress website. This plugin allows you to customise your ads and sell your advertisements as well. With this plugin, you can easily accept payments from your clients as it supports all the major payment gateways.

The ads created by this plugin are fully responsive and will adapt to any screen size. If these features are not enough for you, then you can expand its features by using multiple add-ons. Some other features of this plugin are payment management, ad analytics, and tons of customisations.


Showcasing ads are per the content doesn’t only supports the content, but also has a higher chance of catching the attention of the user without distracting them. The plugins mentioned in the process are premium plugins, so you need to invest some finance in them. You don’t have to worry as the investment will surely return to you in the form of ad revenue.

Leave a Reply

Your email address will not be published. Required fields are marked *

How to Fix "Destination Folder Already Exists" Error in WordPress?

How to Fix “Destination Folder Already Exists” Error in WordPress?

How to Add a Background Image to WordPress?

How to Add a Background Image to WordPress?