How to include Coding Google Adsense in WordPress Posts
Published 3 February 2010 And 641 views
In this article I will tell you an easy way to add Adsense ads code in the form of JavaScript into your wordpress post and you can put it under or above your post because in Internet many people who want to earn money from internet.
1. First step is create files with names functions.php and adding existing code below into file functions.php
function googleadsense($content){
$adsensecode = 'Your Code Adsense Here';
$pattern = '<!-googlead->';
$content = str_replace($pattern, $adsensecode, $content);
return $content;
}
add_filter('the_content', 'googleadsense');
Upload File functions.php your web hosting or place where your save files and add this code in your wordpress post <!-googlead-> and you can put this code above, in the middle, under your post or article. Results will be made like below can see my Google Adsense are in the middle my articles.
All this is easy and simple way to add Adsense code into your site and if you do not know to add please leave a message and maybe I can help you be happy as long as I can still help you.






