Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

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]

Subscribe via Email

Share this:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • Email

Related

February 27, 2011 Ritesh Sanap WordPress Adsense Ads, Adsense in Posts, Google, Google Adsense, Short Code, Tricks

Post navigation

Previous Previous post: How to Turn off/ Remove Admin bar in WordPress
Next Next post: How to Remove Curly Quotes

Currently Trending

  • Windows Vista CD key
  • How to download Specific parts of YouTube videos
  • HORIZONTAL AND VERTICAL SPACING
  • How to Increase Dropbox upload speed
  • Eleven Best free Photo/Pics Editors - Which To Choose ??
  • h4x0r ( Hacker ) - Blogger Template
  • A Great Magic Trick With Google - Fool your Friends
  • Cannot Open Google or Gmail in Google Chrome
  • A NotePad Trick - What happened on 9/11/2001 !
  • Free Online Angry Birds game

Random Posts

I Lost My MotherBoard Driver CD/DVD ! What To Do ??

August 14, 2008 By Ritesh Sanap 1 Comment

How to Find Best web hosting according to your needs

July 26, 2010 By Ritesh Sanap Leave a Comment

How to watch Netflix outside USA – UnoTelly

April 14, 2012 By Ritesh Sanap 5 Comments

Using WordPress Media Uploader in Plugin or Theme

June 25, 2011 By Ritesh Sanap Leave a Comment

How to Rename the Recycle Bin

February 29, 2008 By Ritesh Sanap Leave a Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2021 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.