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 :


1 Comment

    Leave a Reply

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

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>