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 :


Subscribe to WPDEN