Posts Tagged ‘Wordpress Plugin’

How to Create Google +1 WordPress Plugin


If you are a web developer with basic PHP skills just like me than writing a WordPress plugin is not difficult for you.  All you need, PHP skills, a right direction, some resources, a little information on how WordPress expects your plugin to behave, and most importantly a great idea.

How to create a Google + Plugin for WordPress.. Although there are plugins available but wouldn’t it be nice to learn how to create one from scratch? And that’s the topic of my post today — I’ll show you how to create your very own WordPress Plugin to display your Google plus feed in your post.

This tutorial ” How to Create own Google+1 WordPress  Plugin” is only for learning purpose,  and  is the clone of Easy Google +1 Plugin, Other useful resources about how to create you own plugin.

Tools required to Develop a WordPress Plugin
Writing a Plugin
Top 10 Most Common Coding Mistakes in WordPress Plugins
WordPress 2.0.3: Nonces (Secure your forms with nonces)
Simplified AJAX For WordPress Plugin Developers using Jquery
“Desenvolvendo Plugins para WordPress” by Rafael Dohms
12 part “How to Write a WordPress Plugin” at by Ronald Huereca
How to create WordPress Plugin from a scratch
HookPress, a plugin that enables extending WordPress in languages other than PHP via webhooks.
How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts
Demonstrating how to use the Settings API, WP_Http, and Pseudo-cron
30+ Essential WordPress Plugins
Get Going with Google AdWords

Names, Files, and Locations

Plugin Name

The plugin name must be unique, Check out Plugins directory and the other repositories it refers to, to verify that your name is unique; you might also do a Google search on your proposed name. I choose  wpArena Google +1 for this plugin.

 Plugin Files

The file name of PHP should be unique because  People who install your Plugin will be putting this PHP file into the WordPress Plugin directory in their installation, wp-content/plugins/, so no two Plugins they are using can have the same PHP file name.

Another option is to split your Plugin into multiple files. Your WordPress Plugin must have at least one PHP file; it could also contain JavaScript files, CSS files, image files, language files, etc. If there are multiple files, pick a unique name for a file directory and for the main PHP file, such as create a directory name “wparena-google-plusone”  and two files as easy-google-plusone.php and easy-google-plusone-admin.php

Readme File

If you want to host your Plugin on, you also need to create a readme.txt file in a standard format, and include it with your Plugin. See for a description of the format.

Right now are are not adding this plugin  to WordPress Plugin Directory, so we are not creating the one.

Home Page

It is also very useful to create a web page to act as the home page for your WordPress Plugin. This page should describe how to install the Plugin, what it does, what versions of WordPress it is compatible with, what has changed from version to version of your Plugin, and how to use the Plugin.

File Headers

The first thing is to add some information into your main Plugin PHP file, as we would add in easy-google-plusone.php file.

Standard Plugin Information

Without the header, plugin will never be activated, so its very important to Plugin’s main PHP file must contain a standard Plugin information header.  As we will add the following information about our wpArena Google +1  plugin:

Plugin Name: wparena Google +1
Plugin URI:
Description: Add the Google +1 Button to WordPress posts. With wparena Google +1 you can change the +1 button settings by changing the size, postion, language, alignment or count display.
Author: Nur Moustafa
Version: 1.0
Author URI:
License: GPL2

The most important the the Plugin Name line and the rest of the information will be used to create the table of Plugins on the Plugin management screen. The order of the lines is not important.

GPL2 is the License slug that  should be a short common identifier.

Important: file must be in UTF-8 encoding.

To indicate a GPL2 license, include the following lines in your Plugin:


    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

Programming Your Plugin

If you have created above files in a directory “wparena-google-plusone”  including with these two files “easy-google-plusone.php” and “easy-google-plusone-admin.php” and add this plugin directory in a wp-content/plugins directory, you can see this plugins in the administration panel so WordPress is aware of it. However, it doesn’t do anything as it contains nothing except of the information header. We are going to change this now.

WordPress Plugin Hooks

Hooks are the backbone of WordPress. They enable plugin developers to “hook” into the WordPress workflow to change how it works without directly modifying the core code. This enables users to easily upgrade to newer versions of WordPress
without losing modifications.

WordPress has two primary types of hooks: action hooks and filter hooks.

Action Hooks: Enables you to execute a function at a certain point.

Filter Hooks: Enables you to manipulate the output passed through the hook.
Hooks aren’t just for plugins. WordPress uses hooks internally. If you browse through the core source code, you can see
many examples of how WordPress uses its own system to hook into itself. Read detail about Hooks: Professional WordPress Plugin Development.

For wpArena Google +1 Plugin, by calling the “wp-head”  function, we can execute and register a function before WordPress adds the head contents, That can be done using the “wp_head” action hook which we will use to add the Google +1 button script to the<head> tag. After this now we need to add Google+ button before or after the posts, that can be done registering a function to be executed before displaying your posts’ content using the “the_content” filter hook. So, Plugin will use the following two hooks:

  • The wp_head action hook which will add the Google +1 button script to your blog <head> tag.
  • the_content filter hook which will modify posts’ content and add the Google +1 button tag to posts.

Always try to choose a unique name so it does not conflict with other function of any other plugin. Use a prefix to your functions to make it unique.

How to add +1 Script to <head>

To execute and register a add_action function of the Action API will take two parameters, the action name and the function both as string.

We are using  the name “wpgpo_script” for wp_head registered function. The wpgpo prefix is the WordPress  Google Plus One initials.

add_action('wp_head', 'wpgpo_script');

Now write PHP function with the same name we registered for the wp_head action.

function wpgpo_script() {

By using the PHP echo() function we can add the Google +1 button script to tag.

[sourcecode language=”plain”]
global $post;
$content = ‘</pre>
<div class="simple_google_plusone">’ .
” .
‘ . $content;

Change the language according to your own preferred language.

Override the Post Content

The add_filter WordPress function takes the two parameters the filter hook name and plugin function name,  which will  register a a function to filter the content of the posts.

The following code register the wpgpo_content function to filter the_content hook and creates the wpgpo_content function which have one parameter the $content variable. The $content parameter contains post content.

add_filter('the_content', 'wpgpo_content');
function wpgpo_content($content) {

Following code will add the +1 button tag to your posts’ content by PHP dot concatenation and then return the new content. And will add the default settings +1 tag to the beginning of your posts. You can easily concatenate it to the end of your posts by starting first by the $content variable.

function wpgpo_content($content) {
    $content = '' . $content;

    return $content;

To change the settings of +1 button by using the size, count and href attributes. The href will be next replaced by each posts’ permalink as follow.

$content = '<g:plusone size="standard" count="true" href="<your-post-permalink>"></g:plusone>' . $content;

At the end give style to Google+ button and then to add your posts’ permalink as the href attribute of the +1 button. Get the post permalink using the get_permalink() function that takes the post ID as parameter. The $post variable is one of WordPress global variables that will use to get the current post ID.

global $post;
$content = ‘<div class="simple_google_plusone">’ .
‘<g:plusone size="standard" count="true" href="’ . get_permalink($post->id) . ‘"></g:plusone>’ .
‘</div>’ . $content;

wpArena Google +1 plugin code downloadable .zip version.


External Resources

Digging Into WordPress
120+ People wrote a Help Manual about Google+
Anatomy of a WordPress Plugin
How to Add the Google +1 Button to your Website
How to create your own WordPress functionality plugin
Tutorial: How to write a WordPress Plugin?
Create a Custom WordPress Plugin From Scratch
WordPress Plugin Tutorial – Hello World
WP Tutorial: Your First WP Plugin – Video Tutorial
A Crash-Course in WordPress Plugin Development
Building a Plugin – It’s Easier Than You Think (Video)
Developing WordPress Plugins – Slides
Google free icon set in 3d optik
Google Plus (+) Icon Set PNG (dpp)

How to Add the Google +1 Button to your Website

Few days back, Google released its Google +1 (“plus one”) button to compete with Twitter’s Tweet button and Facebook’s Like button. This is a big step towards adding the social aspects to the search results.  If you have not incorporate it into your website, do it as soon as possible. Because,  This button can generate a potential traffic and exposure to your web site. All your visitor need to have a Google account to use your Google button.

Why Google created this button? first of all to compete  Facebook like button and Twitter’s Tweet button.

Secondly, +1 helps people discover relevant content—a website, a Google search result, or an ad—from the people they already know and trust. Adding the +1 button to your pages lets users recommend your content, knowing that their friends and contacts will see their recommendation when it’s most relevant—in the context of Google search results.

How to Add Google +1 in WordPress

The process is very simple, just visit official page for publishers which offers different sizes  with some customization if you want to do it. If still you want to know step by step guide you can visit: How to Add the Google +1 Button to your WordPress. Webmasters who want to quickly get button code to run on their site should use the configurator. Before using +1 Button  API Call you can read the policies on Google +1 Button Publisher Policies. One my  my friend from DIYthemes for WordPress Thesis themes explaiedn in detail about using  +1button API call on his blog How to Add Google +1 (plus one) Share Button to WordPress and Thesis which is a detail tutorial about this excellent +1 button.

WordPress Plugins for Google +1 Button

If  you  love using WordPress plugin to help you to display sharing  button at the end of your post. Than you can use Sharedaddy which already allow you to share your posts with Twitter, Facebook, and a host of other services like Google +1 button. You can configure services to appear as icons, text, or both. Some services have additional options to display smart buttons, such as Twitter, which will update the number of times the post has been shared.

Google +1 for WordPress

Google +1 for WordPress is the only full blown Google +1 plugin for WordPress. +1 Pro gives you support for both custom WordPress ShortCodes AND Template Tags! Add as many Google +1 buttons to your site as you want, anywhere you want!

Google Traffic Pop for WordPress

Take full advantage of Google’s 500 million plus user base by giving your visitors an alternative to ads that also create value for you. By clicking +1 on your content they share it with everyone and they get to view your content uninterrupted: a great alternative to those who have content they cant charge for but want added value from it. Requiring them to +1 before reading / viewing / downloading etc will add thousands of new visitors and links to your sites! More +1’s = more traffic = more money!

Google +1 Content Locker

Tap into Google’s 500 million plus users with Google +1 Content Locker and gain immediate search and social traffic boosts. More +1’s = more traffic = more money!

The first plugin of its kind, Google +1 Content Locker allows you to wrap your WordPress post and page content in a “content locker” that will require the user to share your content with Google +1 before they can see it. Build a social media super prescense over night by locking all, or just parts of your posts and pages!


Why Google +1 Button is Bad for Search Engine Optimization

Why Google +1 Button is Bad for Search Engine Optimization

I havn’t face any problem with the load time of this button but bhartzer on has written that

It will severely impact your page load time, which will ultimately hurt your website’s usability. Slow page load times will also impact your website’s search engine optimization. Do not implement the Google +1 button at this time.

Never forget to rock the Wparena’s +1 button at the end of this post.

Facebook, Twitter and Google +1 Traffic Pop

Take full advantage of these tools to get more traffic to your website. What they are saying about them:

More likes = more exposure = more traffic = more money!
More tweets = more exposure = more traffic = more money!
More +1’s = more traffic = more money!

Twitter Traffic Pop for WordPress

Instead of forcing your visitors to see popups with ads, why not ask them to Tweet instead! Tap into Twitter’s 100 million plus users with this hot new popup style marketing tactic. Make Twitter your slave with one line of code! More tweets = more exposure = more traffic = more money!

Twitter Traffic Pop Featutres

  • Fully customizable CSS included, looks just like a pop-up
  • Optional close button
  • LOCKS out page functionality behind the popup!
  • Cookies remember users who already ‘Tweeted’ about your site
  • Works on all sites and big and small
  • Viral, Twitter styled pop-up is proven to induce more tweet traffic.
  • Make Twitter your slave with one line of code!
  • Great for PREMIUM CONTENT areas or even have your uses tweet ads for you!
  • Allows you to pre-populate the tweet input box!

Includes full source with documentation and well commented WordPress Plugin and jQuery plugin version of the pop up script.


Google Traffic Pop

Take full advantage of Google’s 500 million plus user base by giving your visitors an alternative to ads that also create value for you. By clicking +1 on your content they share it with everyone and they get to view your content uninterrupted: a great alternative to those who have content they cant charge for but want added value from it. Requiring them to +1 before reading / viewing / downloading etc will add thousands of new visitors and links to your sites! More +1’s = more traffic = more money!

Live preview | Detail

Facebook Traffic Pop

Tap into Facebook’s 500 million plus users now with the hottest Facebook traffic plugin. Facebook traffic pop is a new breed of ‘popups’ that will allow you to have your users like your pages, instead of trying to get them to click ads. More likes = more exposure = more traffic = more money!

Live preview | Detail

Twitter Traffic Pop

Instead of forcing your visitors to see popups, why not ask them to Tweet instead! Tap into Twitter’s 100 million plus users with this hot new popup style marketing tactic. Make Twitter your slave with one line of code! More tweets = more exposure = more traffic = more money!

Twitter Traffic Pop Featutres

  • Fully customizable CSS included
  • Optional close button
  • LOCKS out page functionality behind the popup!
  • Cookies remember users who already ‘Tweeted’ about your site
  • Works on all sites and big and small
  • Viral, Twitter styled pop-up is proven to induce more tweet traffic.
  • Make Twitter your slave with one line of code!
  • Great for PREMIUM CONTENT areas or even have your uses tweet ads for you!

Includes full source with documentation and demo examples, and I have even included a blank template for you to build pages off with no set-up required!


Run Advertisement campaign with WP PRO Advertising System Plugin

This WordPress Plugin allows you to manage your advertisements on your WordPress site. It has many powerfull features to put advertisements on your website, manage advertisers, campaigns, banners & adzones, track clicks, impressions & CTR all in just a few seconds.

List of Features

  • Manage Advertisers create a profile for each advertiser.
  • Manage Campaigns create multiple advertising campaigns for each advertiser. this way you keep a clean overview over all of your banners.
  • Manage Banners You can choose between 3 options to add banners.
    1. Upload a banner from your computer
    2. Link an external banner
    3. Paste HTML Code (adSense, iframes, …)
  • Manage Adzones you can place adzones anywhere you want on your websit. As soon as you link a banner to an adzone it will be visible on your site. Adzones can be any size. There are 2 ways to add adzones to your website.
    1. Template tag: this is a function you can include into your template.
    2. Shortcode: this is a shortcode you can use inside your posts/pages.
  • Track statistics keep an overview of how many impressions/clicks your ads get and calculate the CTR for every banner, campaign and advertiser.
  • Customize using Add-Ons Add-ons allow you to extend the possibilities of the WP Pro Advertising System. This way you can build an advertising manager just the way you like. No need to worry about stuff you’ll never use. Only add the plugins you really need.
    1. PRO Ad Region Data
      • This plugin allows you to show specific banners to users from sprecific countries.

Online Preview | Detail

WordPress Designers and Developers Go for Cloud Computing!

For me WordPress designers and developers should go for Cloud computing, because it is an emerging technology. They are often in the business of selling ideas which is not a physical product so they don’t actually have to be anywhere when they work. They just need to be near a computer with an internet connection.

Image Ref.

Compared to the traditional shared, VPS or dedicated hosting , cloud hosting offers unprecedented benefits that makes your design and development  grow as you can concentrate on your core designing rather than worrying about the hardware software requirements.

Optimizing your WordPress installation for cloud computing

Optimization is very important to run a successful WordPress powered website or blog. On shared hosting no need to pay much attention to how much server resources your WordPress installation utilizes. As well dedicated hosting or virtual private servers can eat up ram and utilize a lots of resources. However, on a cloud computing environment like Amazon Simple Storage Service (Amazon S3), give you the edge that only utilized resources will be use.

On the other hand, you should optimize your WordPress installation and use some plugins which help you to minimize resources it uses. Here are some useful plugins.

Amazon Cloud Computing S3 plugin for WordPress

This WordPress plugin allows you to use Amazon’s Simple Storage Service to host your media for your WordPress powered blog.

Thanks to Tan Tan Noodles Blogonline storage solution and host their images for providing valuable tips about using Amazon S3.


Google (XML) Sitemaps Generator for WordPress

Author: Arne Brachhold

This plugin will generate a special XML sitemap which will help search engines like Google, Bing, Yahoo and to better index your blog. With such a sitemap, it’s much easier for the crawlers to see the complete structure of your site and retrieve it more efficiently. The plugin supports all kinds of WordPress generated pages as well as custom URLs. Additionally it notifies all major search engines every time you create a post about the new content.

DownloadPlugin Homepage

Resize on Upload

Author: John Tindell

Provides the ability to set a maximum width or height an uploaded image can be, if the image is larger than the specified values then it resized. Ideal for users who wish to upload multiple files without having to resize them via Photoshop or GIMP first.

DownloadPlugin Homepage

Just another contact form plugin. Simple but flexible.
Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.

DownloadPlugin Homepage

Yet Another Related Posts Plugin

Author: mitcho (Michael Yoshitaka Erlewine)

Yet Another Related Posts Plugin (YARPP) gives you a list of posts and/or pages related to the current entry, introducing the reader to other relevant content on your site.

Download Plugin Homepage

A Better Tag Cloud

Author: Nicolas Kuttler

I was pretty annoyed with the default tag cloud widget. It does a lot of things wrong, like inconsistent HTML markup and hardcoded font sizes. So I wanted to write my own. Digging through the code I found out that the wordpress wp_tag_cloud() function is pretty powerful. In fact, it could do almost everyhing I want. So I abandoned my plan to rewrite everything from scratch and added a nice admin interface to my tag cloud widget.

DownloadPlugin Homepage

Google Analytics for WordPress

Author: Joost de Valk

The Google Analytics for WordPress plugin allows you to track your blog easily and with lots of metadata. It adds the asynchronous tracking code for Google Analytics and automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It’ll add custom variables while tracking to show you pageviews per author, post type, category or publication year. It’ll also allow you to track AdSense clicks, add extra search engines, ignore certain user levels, and much much more: this is simply the Ultimate Google Analytic solution for WP!
DownloadPlugin Homepage

These are the links contain more useful plugin list:
30+ Essential WordPress Plugins
The Best WordPress Plugins for Bloggers of the Future

Cloud Website Builders

The following websites allow anybody to create a blog.

  • Blogger
    Blogger is a website that allows anybody to create their own blog for free.
  • Google Sites
    Google sites allows anybody to easily build a public website or private intranet with advanced functionality. Even quite sophisticated sites can be built and hosted with no payment required.
  • Moonfruit
    Moonfruit is a very easy to use, drag-and-drop website building tool that has already been used to build over 2.5 million websites. A site with up to 15 pages can be built and hosted for free. After that a subscription becomes payable.
    Webs is a free or paid website building tool that offers more code-savvy website designers somewhat greater technical flexibility that most of its competitors.
  • WordPress
    Wordpress is a very popular and sophisticated tool for creating your own free or paid blogging website.

Photo, Video and Audio Editors

These are all free online media editing tools.

  • Aviary
    Aviary offers suite of online media editing tools, including its Phoenix photo editor, Ravenvector-based drawing package (a bit like an online version of Adobe Illustrator), and its Mynamulti-track audio editor.
  • FotoFlexer
    Fotoflexer is a popular online photo editor that includes great integration with FacebookFlickrand MySpace.
  • flauntR
    flauntR is an online photo editing package that can integrate with a range of other popular web applications that use photos.
  • Jaycut
    Jaycut is a free online video editor. It allows twin-track video editing with transitions and titles, and has direct YouTube upload functionality. A demo can even be tried immediately without registration! This really is cutting-edge cloud software as its most impressive.
  • Photoshop Express
    Photoshop express is a free if very-cut-down online version of the industry-standard PhotoShop photo editor.
  • Picnik
    Picnik is an online photoeditor that can be used for free without registration. It is a cheery package for those who want clear and simple tools.
  • Pixlr
    Pixlr is an absolutely excellent free online photo editor. An interface called Pixlr Express is provided for image editing novices. However, for those who have experience of the full version of PhotoShop, the full Pixlr Editor offers a very powerful range of tools. These include layers, a history brush, and wide range of real-time filters. Anybody can use Pixlr for free online without even registering. Hurrah! However, online file storage is not included.
    Pixorial is another online video editor. Whilst not as sophisticated as Jaycut, it includes some cool collaborative features.

Cloud E-Mail Packages

Allow e-mail to be written and collected in the cloud.

  • Gmail
    Gmail is the very popular free web-based e-mail offering from Google.
  • Mimecast
    Mimecast is a cloud-based e-mail system for businesses that offers enterprise-class security and archiving.
  • Windows Live Hotmail
    Windows Live Hotmail is Microsoft’s free online e-mail system. It offers 5Gb of storage that ‘automatically increases as you need it’.
  • Yahoo! Mail
    Yahoo! Mail is a free online e-mail system which claims to offer ‘unlimited’ storage.

Virtual Meeting Tools

Following packages all facilitate virtual meetings by allowing remote participants to electronically communicate and share computing resources.

  • Adobe ConnectNow
    Adobe ConnectNow is a sophisticated online application for running virtual meetings. Users can share files, notes and their entire screens, as well as using online whiteboards and audio or video conferencing. Both free and paid versions are available.
  • LotusLive Meetings
    LotusLive meetings is a paid online virtual meeting tool from IBM, and one element of the broader LotusLive online collaboration suite.
  • WebEx
    WebEx is a suite of online collaboration tools from Internet giant Cisco. It features file and desktop sharing combined with phone conferencing and video conferencing and is becoming an industry standard. Whilst WebEx is a paid service, a free trial is available.

Freemium SaaS WordPress CMS + Blog Theme I

Freemium SaaS I for WordPress is a theme created for you to market your SaaS (Software as a Service) Web application. This WordPress theme includes the following:

  • WordPress 3.0 Compatible
  • 23 useful shortcodes
  • 6 admin switchable color schemes
  • Editable 3, 4 or 5 Column Pricing Grid (as static blocks)
  • Product Tour Pages Template
  • Billing info & Credit Card Signup Form (must be integrated with your own gateway)
  • Detailed Setup Instructions
  • Sample content to get your site looking like our demo
  • 6 Page Templates
  • 4 Panel Theme Settings Admin
  • Localization support

Includes layered Photoshop PSD (Photoshop) file of entire site.

Live Preview | Detail

Freemium SaaS WordPress CMS + Blog Theme II

Freemium SaaS II for WordPress is a theme created for you to market your SaaS (Software as a Service) Web application. This WordPress theme includes the following:

  • WordPress 3.0 Compatible
  • 21 useful shortcodes
  • Editable 3, 4 or 5 Column Pricing Grid (as static blocks)
  • Product Tour Pages Template
  • Billing info & Credit Card Signup Form (must be integrated with your own gateway)
  • Detailed Instructions Documentation
  • 6 Page Templates
  • Custom 4-panel Admin Settings

Includes layered Photoshop PSD (Photoshop) file of entire site.

Live Preview | Detail

If you want to understand more about Cloud Computing than you must read this book:

Cloud Computing: Web-Based Applications That Change the Way You Work and Collaborate Online.

How and Where to add AdSense to WordPress blog

Now bloggers do blogging to make money. And the first thing they want to do is to put Google AdSense on their blog. Embedding or placing Google AdSense on your WordPress can be accomplished in a variety of ways. Here is a WordPress guide that gives you different options for integrating Ads into your .

Google Adsense in a Sidebar

The easiest way to add adds in sidebar is to use WordPress widgets. Adding Google Adsense code to your sidebar and moving them into the order you want is easily achievable by simply dragging and dropping. You can also add anything you want including HTML code into a text widget.

The latest version of WordPress is integrated with widgets. If you are using old version which does not support widgets, than you can  grab the Sidebar widgets plugin. Keep in mind that not all WordPress themes are “Widget Ready” so if you don’t see the widget option in your dashboard then you will need to Widgetize your theme.

Even more information

How to use Widgets: For bloggers: how to install and use Widgets on your own blog
Widgetizing Themes: For designers: how to make your themes work with widgets
Widgetizing Plugins: For developers: how to make widgets for WordPress blogs

AdSense Code Into A WordPress Theme

With WordPress Plugins like AdSense-Deluxe, you can place Adsense code on any post or page. If you don’t want to use Plugin even than you can place to add your code in the main index template (index.php),  also be placed in the single post (single.php), page template (page.php), archives and if your theme has one the 404 template. Open one of the files and place your code just above the post content, so place the code above like this:

Your Code Here

<?php if (have_posts()) : //Are there any posts? ?>

Other places to place the code are:

Below the post,  above or below the comments:

<?php if ( comments_open() ) : //if comments are allowed ?>

You can experiment with many different places, just be sure to backup any file you are attempting to edit, and that the AdSense code or banner fits in the area and that all HTML or script tags are properly closed. It would also be wise to view your changes in different browsers and different size windows to make sure it looks right.

Best WordPress Plugins for Google Adsense

WordPress allows bloggers to easily integrate Google Adsense inside wordpress using plugins.For AdSense within a post I recommend following WordPress Plugins for Google  AdSense.

Adsense Deluxe – probably the most popular and perhaps the best AdSense plugin out there, AdSense Deluxe lets you automatically insert ads (it works with Yahoo ads, too) into your posts or pages. Very configurable and yet simple to use.

AdMan – integrates ads directly inside your blog posts. Compatible with AdSense.

AdSense Manager – a fully featured AdSense manager. Use the latest version only, as older versions had some issues with the AdSense terms and conditions.

AdRotator – AdRotator rotates (doh!) your AdSense ads, and combines them with other advertising programs.

Adsense Injection – inserts Adsense code randomly into a pre-existing blog. Takes a random paragraph (or br tag) break in your article and inserts adsense code. It does one per story on multi-post pages (home, archive, category) and let’s you pick how many to show on single post pages.

Google Ad Wrap – show that pesky Google spider what content on your blog is really important

Adsense Beautifier – places images next to your AdSense ads, which should increase the clickthrough rate. Be very careful with this one, as there’s some controversy over whether this violates the AdSense T&C.

Author Adsense – split revenue between several blog authors on the same blog.

AdSense Sharing Revenue and Earnings System – another revenue sharing plugin for AdSense on WordPress. Also shows you your earnings in real time.

Adsense Earnings WordPress Plugin – always be in control of your AdSense earnings, right from the WordPress Admin panel.

WhyDoWork AdSense Plugin – Thie plugin will help you to insert adsense ads on your blog with out modifying template with useful options. It’s depend on you that what kind of different adsense ads wanna show on page. As you can insert ads 468×60 ad at the start of a article, or same on below of article in your wordpress blog. It’s better way to add ads in blog with out working on template.

WP Simple Adsense Insertion – This plugin will help you to add google adsense ds to your blog post, pages and also in sidebar. There are so many plugin will help you to insert google adsense ads in post, but this plugin will help you to show ads in pages and sidebar too. Whenever you want to show ads in sidebar, need to using trigger text or calling the php function, it’s simple and easy way to do.

Easy AdSense – This plugin will help you to insert ads into posts, sidebar and add a google search box. it’s very easy to do, and it will give you complete solution for everything adsense related. You can customize google search with adsense. whenever visitor will earch it will show google ads too.

Adsense Ready WordPress Themes

Robust-5 in 1 Business & Portfolio WP Theme

Robust is a premium wordpress theme that will suite any project you can think off thanks to the fresh look and clean design. The theme comes with 5 color skins that are sure to impress any of your site visitors and will suite to your company’s needs.

Live Preview | Detail

BVD-Beautiful Website Design-Wordpress

Live PreviewDetail

Egg Theme – Personal WordPress Blog theme

2 column, Traditional widget ready theme, Special styled head post and custom widgets to fit the blog design.

Live PreviewDetail

Avura – Elegant Magazine Theme

Live PreviewDetail

Hugo – Minimalistic Portfolio WordPress Theme

Live PreviewDetail

Free & Professional WordPress Security Service Free & Professional WordPress Security Service

We Love WordPress. WordPress Arena is a place for WordPress Developers and Designers, providing Tips, tricks, tools and resources to build a website or blog on WordPress. We also present The WordPress Showcase for all kind of WordPress Powered Websites.

Copyright © 2014 WP Arena All Rights Reserved

Divi WordPress Theme