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
  • WhatsApp
  • Email

Related

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

Trackbacks

  1. Best WordPress Resources Websites Part3 says:
    January 13, 2012 at 10:47 pm

    […] 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 […]

    Reply

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation

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

Currently Trending

  • How to download Specific parts of YouTube videos
  • How to Change the Welcome/Login Screen in Windows XP ?
  • Windows Vista CD key
  • Embed Text Resizing Widget To Increase or Decrease The Font Size
  • Free Online Angry Birds game
  • Different way’s to shutdown your pc
  • Check if your Antivirus Is Working Properly
  • Free Online Virus and Malware Scan
  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • 110 Amazing Magic Tricks with Everyday Objects - eBook

Get Latest post in your Inbox

Random Posts

Facebook Like or Recommend Button For Blogger

May 24, 2010 By Ritesh Sanap 4 Comments

How to remove Previous and Next entries in thesis

May 21, 2011 By Ritesh Sanap Leave a Comment

Place Your FaceBook Chat On Your FireFox Sidbar With This Simple Guide

May 7, 2010 By Ritesh Sanap Leave a Comment

Orkut Keyboard Shortcuts

August 11, 2008 By Ritesh Sanap Leave a Comment

How to backup and restore my Internet Favorites / Bookmarks.

April 30, 2009 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

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