By LHLNE payday loans

How to show Adsense in your Posts

Do you wanted to increase your Adsense earning by displaying your Adsense ads in your post this short code will help you to do so


Heres the way to do so :

  1. Login to your wordpress Blog
  2. go to Appearance > Editor
  3. In Functions.php , add the below code :
    function showads() {
    return '
    Your Adsense Code here
    ';
    } 
    
    add_shortcode('adsense', 'showads');
  4. Replace “Your Adsense Code here” with your Adsense Code.
  5. Save functions.php

Now as you have saved the functions.php now you can show your Adsense ads in your posts by simply putting the below Short code :

[adsense]
Twitter Digg Delicious Stumbleupon Technorati Facebook Email

Trackbacks/Pingbacks

  1. Best WordPress Resources Websites Part3 - January 13, 2012

    [...] 28-wpden has three sections labeled Hacks, Shortcode and Tips & Tricks that stand for a promising and easy to locate reference for the WordPress enthusiast. The website is quite new but it looks promising. My recommended link: How to show Adsense in your Posts [...]

Leave a Reply