WordPress Tutorials

How to Display Ad Blocks in Specific Posts in WordPress

For users who want to engage more users with their content on their WordPress websites, they may need to display ads of featured posts or the new posts, so that customers can quickly find the most valuable post or new content updated on site. As a WordPress webmaster, do you want to display ad blocks in specific posts in WordPress?

For the question, “Yes” must be the answer of most webmasters. In order to help users quickly and easily display their ad blocks in their posts, we are to compose a guide about this. With the detailed tutorial, we believe users who ever don’t have any coding knowledge or skill can make their ad blocks be displayed on site without downtime on your site.

Why Should You Display Ad Blocks in Specific WordPress Posts?

Actually, making money blogging has various methods, but banner ads are regarded as the best one, because it is the most attractive and easy way to offer the valuable information to users. When viewing others’ websites, you should notice that many webmaster often display their banner ads on the header or in the sidebar of their sites, but these are most common spots for banner ads, so that users visiting your site will always ignore these places to get rid of those bothering ads. If you really display banner ads like that, these blindness banner ads will only get bad click rate and then impact on our website’s revenues.

In order to avoid the situation, many bloggers or webmasters attempt to insert ads into post content. And they find the method works well, which helps increase ads visibility as well as clicks. Of course, when you are doing this method, you cannot put as many ad blocks as you can in your WordPress posts. If that, it will seem to be too busy to view your posts. Considering user experience is also one of the top criteria for a good WordPress post with ad blocks.

Well, how to minimize the adverse effects? We recommend you to display the ad blocks in specific posts on your WordPress sites. As for the selected posts, they can be the most popular ones, featured articles, or the long-form content. In below, we will show you how to effortlessly display your ads in those specific posts on WordPress sites.

Create Ad Blocks in WordPress

To do this, you need a WordPress plugin named Adsanity. So, you should install and activate it at first. Customers can check out How to Bulk Install WordPress plugins to learn the process. It is very easy.

For Adsanity, it is a premium ad management plugin for WordPress, allowing users to effortlessly create ad blocks as well as display them in any places you want on your site. In addition, Adsanity comes with advanced compatibility, being able to work with any other third-party ad platform, such as Google Adsense. What’s more, you can even make full use of the plugin to sell ads to advertisers directly.

Once you activated Adsanity on your WordPress site, you can move to create the ads. For this, you should visit WordPress Dashboard, and then visit “Adsantiy” under “Plugins” in the left sidebar, and then click on “Create Ad” to get to the page and create your ads.

When creating an ad, you should firstly enter a title for it, which will be used to help you identify your ads on your WordPress website. Then, you should choose the type of ads you are going to create, and Adsanity offers two types available: one is the ads hosted on-site, and the other is external ads for third parties.

Here we take the ads hosted on your own site as our first instance. To create a hosted ad, you need to choose the ad size, enter a tracking URL, and give an image you select for the hosted ad. You can check out the screenshot in below:

If you need to create an external ad for third parties like Google Adsense, you should switch to “External Ad Network” mega box at first. Similar to hosted ads creation, you need to choose the external ads’ size and next paste the ad code that the third-party ad network offers.

Then, you can publish the well-done ads you just created. On the right menu on the “Create Ad” page, you can find an edit link. Click on it and then set up a schedule for your ad. About the schedule, you can set the start and expiration dates both for the specific usage or post. Once you made the schedule well, you need to click on “Publish” button to publish the ad.


Now, you can add the newly created ad into your specific WordPress posts, pages, or any other places on your site as you want. Let’s show you the process to do it in below.

Insert Ad Blocks in Your WordPress Posts

To insert ad blocks in your WordPress posts or pages, the first thing is to edit the page or post where you plan to display your ad blocks. On the “Edit Post” page, you will find two buttons in the visual editor, which are to enable you to insert ad or ad group respectively. You just need to click on the first one “Insert Ad”.

Then, there will be a popup coming out. The popup will allow you to choose an ad block you created before to display. Next is to click on “Insert” link in lower right.

That selected ad shortcode will be inserted into your post in WordPress. Click on “Save” button and then you can view the ad block in your post.

Use Shortcode to Add Ad Block in Your WordPress Post

If you decide to use shortcode to add ad blocks in your WordPress posts, it will be very helpful for you to use test editor to compose your posts. We will show you the process as following:

Go to find the page of “Managed Ads” under “Adsanity”, where you can find a series of ads you created before. Each ad should have a shortcode next to ads’ names. You just need to click on a shortcode, and then it will be automatically copied and saved in your clipboard.

Now, move to edit the page or post where you are going to display your ad, and then paste the copy of the shortcode. Finally, you have to remember to update your post and save the change.


With the simple guide, we really hope you can get understood how to easily and quickly create you ads and insert them inside of your specific posts or pages on your WordPress website. If you have any troubles related to WordPress, you can leave your problems in comments or go to check our WordPress tutorials.

Leave a Reply

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