Use this plugin to quickly and easily insert Google Adsense to your posts, pages and sidebar by using a shortcode or calling the php function from your theme’s template file.
There are many plugins and services which can add Google Adsense to your WordPress site. However I found that even though something like Adsense Manager or Adsense Deluxe provides a lot of customizable options, it can be overwhelming and isn’t really simple enough for people who are new to WordPress.
I found that most of the time I only use two or three types of Google Adsense units in various places and posts throughout my sites.
That’s why I wrote my own Simple Adsense Insertion Plugin for WordPress, to focus on having 1-3 Google Adsense codes saved and use them where ever I want ot on my site by inserting a simple shortcode text to my posts,pages and sidebar.
You can use this plugin to store any ad code too (it doesn’t have to be just adsense code).
For information and updates, please visit the simple Google Adsense plugin page
There are two ways you can use this plugin:
Use the shortcodes:
Call the function from template files:
- <?php echo show_ad_camp_1(); ?>
- <?php echo show_ad_camp_2(); ?>
- <?php echo show_ad_camp_3(); ?>
- <?php echo show_ad_camp_4(); ?>
- <?php echo show_ad_camp_5(); ?>
- Does this plugin allow complex adsense management?
- I am updating an older version of the plugin. Will it still work?
The method for displaying ads changed in version 1.2. The old style will continue to work in this version, but it highly suggested that you update all the adcode in your content to the new method.
An easy way to do this would be to install the find/replace plugin (https://wordpress.org/extend/plugins/search-and-replace/) and update all your old tags. Example: Find and replace it with [wp_ad_camp_1].
I really like this plugin and was using it for few years , no complain, but in my newest theme is in conflict and is changing my H1...header fonts to some other fonts, maybe developer will take a look at this problem and fix it , than i will change my ratings Thanks
Worked perfectly for me! Great plugin. Thanks.
1.8 – Updated the code to remove a couple of the debug mode warnings.
1.7 – WordPress 4.2 compatibility
1.6 – WordPress 3.8 compatibility
1.5 – Added a 5th ad code slot
1.4 – Added a 4th ad code slot
1.3 – Added a new shortcode implementation to display the adsense ads
1.2 – Changed from displaying adcodes through content filtering to the shortcode method