How to Insert Google Ads in Your WordPress Post Using Shortcode

Aside from putting ads on sidebars, header and footer. Including ads inside your post will help on increasing revenue from Google Ads. This is the easiest way to have that ads on your post without installing any plugins.

Here are the steps on how to insert Google Ads in your WordPress post using shortcode

Step1: Go to Appearance – > Editor in your admin panel

[postad]

Step 2: Select your current Theme’s Functions.php

Step 3: Copy and paste this code to your functions.php

function adshow() {
return '</pre>
<div id="adshow"> PLACE YOUR ADSENSE CODE HERE </div>
<pre>
';
}
add_shortcode('ads', 'adshow');

Step 4: replace the text “PLACE YOUR ADSENSE CODE” with your actual Adsense code and save.

Step 5: Use [ads] shortcode for placing ads to your post. Enjoy!

Ron

Since childhood, the technology of computers was his greatest fascination. Empowered with a degree on Computer Science from AMA University in the Philippines, Ron focused on website and program development. Since then, he has been working with different companies and personalities to achieve their corporate and personal goals by providing technical support for their online presence and program solutions. As today’s technology develops faster than the blink of an eye, Ron never stops exploring not only the new but the coming. His exposure to a wide array of businesses and industries equipped him to be versatile and proficient to go beyond the expectations of his clients. Ron is looking forward to more challenging collaborations where he can further improve his ability to apply the latest trends in providing innovative solutions to the growing demands of website and program development.

You may also like...

Did this work for you?