Active Model in Rails

The technique we used was quite a hack as this is something that ActiveRecord wasn’t designed to do but now in Rails 3.0 we have a new feature called ActiveModel which makes doing something like this a lot easier.

Active Model in Rails

Before we get into the details of ActiveModel we’ll first describe the part of the application that we’re going to modify to use it.

Active Model in Rails 3.0
Active Model in Rails 3.0

The screenshot above shows a contact form that has been created using Rails’ scaffolding. The application has a model called Message that is currently backed by ActiveRecord which means that we’re managing messages through the database. We’re going to change the way this form works so that it just sends emails and doesn’t store messages in a database table.

When you’re thinking of doing something like this it’s always a good idea to first consider your requirements and make sure that you really don’t want to store the data from the form in a database as there are often good side-effects to doing this. A database can act as a backup and also makes it easier to move the message-sending into a queue in a background process. For the purposes of this example, however, we don’t want any of that functionality so we’re free to go ahead and make our model tableless.

The code for the Message class looks like this:

File name: /app/models/message.rb


class Message < ActiveRecord::Base
 validates_presence_of :name
 validates_format_of :email, :with => /^[-a-z0-9_+\.]+\@([-a-z0-9]+\.)+[a-z0-9]{2,4}$/i
 validates_length_of :content, :maximum => 500
end

Message inherits from ActiveRecord::Base as you would expect a model class to, but as we don’t want this model to have a database back-end we’re going to remove that inheritance. As soon as we do this, though, our form will no longer work as the validators are provided by ActiveRecord. Fortunately, we can restore this functionality by using ActiveModel.

If we take a look at the Rails 3 source code we’ll see the that there are activerecord and activemodel directories. The core Rails team has taken everything from ActiveRecord that wasn’t specific to the database backend and moved it out into ActiveModel. ActiveRecord still relies heavily on ActiveModel for the functionality that isn’t specific to the database and as ActiveModel is full-featured and thoroughly tested it’s great for use outside ActiveRecord.

It we take a look in the directory that contains the code for ActiveModel we can see the functionality that it provides.

We can see from the list above that ActiveModel includes code to handle callbacks, dirty tracking, serialization and validation, among other things. The last of these is exactly what we’re looking for.

The code for validations has the following comment near the top and we can see from it that it’s fairly easy to add validations to a model. All we need to do is include the Validations module and provide getter methods for the attributes that we’re calling validators on.

Now that we know this we can apply it to our Message model.

File name: /app/models/message.rb


class Message
 include ActiveModel::Validations

 attr_accessor :name, :email, :content

 validates_presence_of :name
 validates_format_of :email, :with => /^[-a-z0-9_+\.]+\@([-a-z0-9]+\.)+[a-z0-9]{2,4}$/i
 validates_length_of :content, :maximum => 500
end

Message inherits from ActiveRecord::Base as you would expect a model class to, but as we don’t want this model to have a database back-end we’re going to remove that inheritance. As soon as we do this, though, our form will no longer work as the validators are provided by ActiveRecord. Fortunately, we can restore this functionality by using ActiveModel.

If we take a look at the Rails 3 source code we’ll see the that there are activerecord and activemodel directories. The core Rails team has taken everything from ActiveRecord that wasn’t specific to the database backend and moved it out into ActiveModel. ActiveRecord still relies heavily on ActiveModel for the functionality that isn’t specific to the database and as ActiveModel is full-featured and thoroughly tested it’s great for use outside ActiveRecord.

It we take a look in the directory that contains the code for ActiveModel we can see the functionality that it provides.

We can see from the list above that ActiveModel includes code to handle callbacks, dirty tracking, serialization and validation, among other things. The last of these is exactly what we’re looking for.

The code for validations has the following comment near the top and we can see from it that it’s fairly easy to add validations to a model. All we need to do is include the Validations module and provide getter methods for the attributes that we’re calling validators on.

Now that we know this we can apply it to our Message model.

File name: /app/models/message.rb


class Message
 include ActiveModel::Validations

 attr_accessor :name, :email, :content

 validates_presence_of :name
 validates_format_of :email, :with => /^[-a-z0-9_+\.]+\@([-a-z0-9]+\.)+[a-z0-9]{2,4}$/i
 validates_length_of :content, :maximum => 500
end

This isn’t enough to get our model to behave as the controller expects it to, though. There are two problems in the create method. Firstly the call to Message.new won’t work as our Message model no longer has an initializer that takes a hash of attributes as an argument. Secondly, save won’t work as we don’t have a database backend to save the new message to.

Filename : /apps/controllers/messages_controller.rb


class MessagesController < ApplicationController
 def new
 @message = Message.new
 end

def create
 @message = Message.new(params[:message])
 if @message.save
 # TODO send message here
 flash[:notice] = "Message sent! Thank you for contacting us."
 redirect_to root_url
 else
 render :action => 'new'
 end
 end
end

We’ll fix the second of these problems first. While we can’t save a message we can check that it is valid, so we’ll replace @message.save with @message.valid?.

File name :/app/controllers/messages_controllers.rb


def create
 @message = Message.new(params[:message])
 if @message.valid?
 # TODO send message here
 flash[:notice] = "Message sent! Thank you for contacting us."
 redirect_to root_url
 else
 render :action => 'new'
 end
end

We can solve the first problem by writing an initialize method in the Message model that takes a hash as a parameter. This method will loop through each item in the hash and assign the value to the appropriate attribute for the message using the send method.

File name: /app/models/message.rb


class Message
 include ActiveModel::Validations

attr_accessor :name, :email, :content
 validates_presence_of :name
 validates_format_of :email, :with => /^[-a-z0-9_+\.]+\@([-a-z0-9]+\.)+[a-z0-9]{2,4}$/i
 validates_length_of :content, :maximum => 500
 def initialize(attributes = {})
 attributes.each do |name, value|
 send("#{name}=", value)
 end
 end
end

If we reload the form now we’ll see that we’re not quite there yet, however.

This time the error is caused by a missing to_key method in the Message model. The error is thrown by the form_for method so it seems that Rails itself is expecting our model to have functionality that it doesn’t yet support. Let’s add that functionality now.

Rather than guessing everything that Rails expects the model to have there’s a nice lint test included with ActiveModel that allows us to check whether our custom model behaves as Rails expects it to. If we include the ActiveModel::Lint::Tests module in a tests for the model it will check that the model has all of the required functionality.

The source code for the Lint::Tests module shows the methods that the model needs to respond to in order for it to work as it should, including to_key. We can make our model work by including a couple of ActiveRecord modules. The first of these is Conversion, which provides that to_key method and several others. The other module is the Naming module, but in this case we extend it in our class rather than including it as it includes some class methods.

As well as including the Conversion module we need to define a persisted? method in our model, which needs to return false as our model isn’t persisted to a database. With these changes in place our Message model now looks like this:

File name: /app/models/message.rb


class Message
 include ActiveModel::Validations
 include ActiveModel::Conversion
 extend ActiveModel::Naming
 attr_accessor :name, :email, :content
 validates_presence_of :name
 validates_format_of :email, :with => /^[-a-z0-9_+\.]+\@([-a-z0-9]+\.)+[a-z0-9]{2,4}$/i
 validates_length_of :content, :maximum => 500
 def initialize(attributes = {})
 attributes.each do |name, value|
 send("#{name}=", value)
 end
 end
 def persisted?
 false
 end
end

If we reload the form now it will work again which means that the Message model now satisfies all of the requirements that Rails 3 relies on for a model. If we try to submit the form we’ll see that the validators are working, too.

We’ve only covered a little of what ActiveModel provides in this episode but this should have been enough to whet your appetite and give you a reason to look more deeply into its source code to see what it can do. The code is well documented and structured so if you see something you might find useful then there should be enough information in the comments for that file to get you started using it.

how to add facebook like button to wordpress site

Facebook Like button released on Apr. 21st 2010. Facebook’s social plugins were integrated into more than millions of  websites. wordpress tutorial for, how to add facebook like button to wordpress site.

This number will increase by the time.

how to add facebook like button to wordpress site

If you want to add the facebook like button in your wordpress website, I recommend not to use any plugin because that will be very easy without adding any plugin.

how to add facebook like button to wordpress site
how to add facebook like button to wordpress site

Just open your theme folder and in that you will find the single.php and index.php file. Open that files and put following code in that file.

Before following title line you can put the code. Like as follows:

<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px"></iframe>

Following are the custom setting for changing the facebook like UI. You change that as per your requirement.
if you like to show the faces of your friends, change the part “show_faces=false” to “show_faces=true”

If you like to show the label of the button as “Recommend“, change the part of the code “action=like” to “action=recommend”

I hope this will help you to implement the “Like” button on your WordPress Posts! Have fun and drop me a line at twitter or you can click on the “Like” button on the top of this post

Phone blogging is future of WordPress

Matt is announced the new feature of wordpress which is phone blogging by wordpress. This is really great news for bloggers. In future you can write post by phone.

 

Phone blogging is future of WordPress

The future is now, folks. You can now go to your My Blogs tab, enable Post by Voice, and get a special number and code to call your blog. After you’re done, the audio file from your phone call will be posted to your blog for all to listen to and enjoy. (And added to your RSS feed for podcast support.)

So now you can post to your WordPress via the web, email, iPhone, Android, Blackberry, desktop clients, and now any telephone in the world. Of course when you post it can be pushed to Facebook, Twitter, and more using the Publicize feature. What more could you want?

Right now this is completely free, but we’ll charge you money to take down posts. Just kidding! We’re making it free and allowing recording lengths up to sixty minutes, but that limit may go down without a paid upgrade in the future. Mostly we’re just curious to see how people use this.

Post by Voice is a way to publish audio posts to your blog from your phone. You call a phone number, enter a secret code, record a message, and we handle the rest.

Enable Post by Voice

In order to use Post by Voice you need to enable the feature on your blog and generate a secret code. The secret code is unique to you and your blog so it is important to keep it secret.

  1. Visit Dashboard->My Blogs

    Phone blogging is future of WordPress
    Phone blogging is future of WordPress
  2. Locate the blog that you wish to post to and click on Enable.

↑ Table of Contents ↑

Sending a Post by Voice

Call the phone number listed on the My Blogs screen, enter your secret code when prompted, and follow the instructions.

↑ Table of Contents ↑

Example Recording

↑ Table of Contents ↑

Regenerate Secret Key

If your secret key is compromised, others will be able to publish audio posts to your blog. Go to the My Blogs screen and use the Regenerate link below the secret key to create a different one.

↑ Table of Contents ↑

Disable Post by Voice

If you would like to disable the feature, use the Delete link below the secret key.

↑ Table of Contents ↑

Additional Info

  • Post by Voice is powered by the Twilio API.
  • The maximum length of a recording is 1 hour. We will probably decrease this after we have a chance to watch usage stats.
  • If there is 10 seconds of silence, the recording will end.
  • You do not need a space upgrade to use Post by Voice.
  • Normal calling rates will apply for the phone call.

WordPress completed 100th Million Plugin Download

WordPress has just announced the 100th million plugin has now been downloaded. It’s a smaller milestone but just as impressive if not even more so, since blogging tools are not going to have the same mainstream audience or appeal as a web browser. WordPress is also celebrating a smaller milestone, the newly launched WordPress 3.0 has just passed three million downloads.

WordPress completed 100th Million Plugin Download

WordPress completed 100th Million Plugin Download
WordPress completed 100th Million Plugin Download

What wordpress is saying?

WordPress 3.0 Thelonious passed 3 million downloads yesterday, and today the plugin directory followed suit with a milestone of its own: 100 million downloads.

The WordPress community’s growth over the years has been tremendous, and we want to reinvest in it. So we’re taking the next two months to concentrate on improving WordPress.org. A major part of that will be improving the infrastructure of the plugins directory. More than 10,000 plugins are in the directory, every one of them GPL compatible and free as in both beer and speech. Here’s what we have in mind:

We want to provide developers the tools they need to build the best possible plugins. We’re going to provide better integration with the forums so you can support your users. We’ll make more statistics available to you so you can analyze your user base, and over time we hope to make it easier for you to manage, build, and release localized plugins.

We want to improve how the core software works with your plugin and the plugin directory. We’re going to focus on ensuring seamless upgrades by making the best possible determinations about compatibility, and offer continual improvements to the plugin installer. And we also want to give you a better developer tool set like SVN notifications and improvements to the bug tracker.

We’re also going to experiment with other great ideas to help the community help plugin authors. We want it to be easy for you to offer comments to plugin authors and the community, including user reviews and better feedback. We may experiment with an adoption process for abandoned plugins as a way to revitalize hidden gems in the directory. I’m not sure there is a better way to show how extendable WordPress is and how awesome this community is at the same time.

As Matt said in the 3.0 release announcement, our goal isn’t to make everything perfect all at once. But we think incremental improvements can provide us with a great base for 3.1 and beyond, and for the tens of millions of users, and hundreds of millions of plugin downloads to come.

There are now a little over 10,000 plugins in the WordPress directory which really puts the 100 million downloads number in perspective. Of course, some plugins are more popular than others, but it does indicate that bloggers are very interested in the added functionality these plugins provide.

The most popular plugin is the antispam tool Akismet with over 8.5 million downloads to date. The tool comes pre-installed with WordPress, so that may explain its popularity, although, these installs may not be counted as downloads. However, later updates are probably counted. Other popular plugins are the All in One SEO Pack with five million downloads and Google XML Sitemaps with close to four million.

Given the popularity of WordPress plugins, it’s no surprise that they are now getting some attention from the development team. Having wrapped up WordPress 3.0, the team decided to focus on some of the things surrounding WordPress rather than the software itself.

“The WordPress community’s growth over the years has been tremendous, and we want to reinvest in it. So we’re taking the next two months to concentrate on improving WordPress.org. A major part of that will be improving the infrastructure of the plugins directory,” Andrew Nacin, a WordPress developer, announced.

“We’re going to provide better integration with the forums so you can support your users. We’ll make more statistics available to you so you can analyze your user base, and over time we hope to make it easier for you to manage, build, and release localized plugins,” he explained.

how to do persistent database connection in wordpress

Here in wordpress tutorial, we explained, how to do persistent database connection in wordpress. Persistent connections are links that do not close when the execution of your script ends.

What is persistent database connection?

Persistent connections are links that do not close when the execution of your script ends. When a persistent connection is requested, PHP checks if there’s already an identical persistent connection (that remained open from earlier) – and if it exists, it uses it. If it does not exist, it creates the link. An ‘identical’ connection is a connection that was opened to the same host, with the same username and the same password (where applicable).

how to do persistent database connection in wordpress
how to do persistent database connection in wordpress

If you want to use the persistent database connection then you should follow my steps:

how to do persistent database connection in wordpress

First Open the wp-db.php file from wp-includes folder. In that file find following words:


// @mysql_connect( $dbhost, $dbuser, $dbpassword, true );

//Change that to

@mysql_pconnect( $dbhost, $dbuser, $dbpassword, true );

comment the mysql_connect line. This line you will find two times in that file. You need to change the line both the times. Then upload this file to your wordpress installation.

Persistent database connection will open only one connection and for every query that will check for connection is present or not. If connection is already present then your query will execute using that persistent database connection.

There are couple of issues with persistent database connection, When you are using the persistent connection you should keep following things in mind.

Imp: There are a couple of additional caveats to keep in mind when using persistent connections. One is that when using table locking on a persistent connection, if the script for whatever reason cannot release the lock, then subsequent scripts using the same connection will block indefinitely and may require that you either restart the httpd server or the database server. Another is that when using transactions, a transaction block will also carry over to the next script which uses that connection if script execution ends before the transaction block does. In either case, you can use register_shutdown_function() to register a simple cleanup function to unlock your tables or roll back your transactions. Better yet, avoid the problem entirely by not using persistent connections in scripts which use table locks or transactions (you can still use them elsewhere).

How to use the the_post_thumbnail In WordPress

Now WordPress in core the new post thumbnail function will not changed until. we have given info about How to use the the_post_thumbnail In WordPress.

use the the_post_thumbnail In WordPress

You can provide 4 picture formats to the function (change the width and height values to your need):

use the the_post_thumbnail In WordPress
use the the_post_thumbnail In WordPress
// the thumbnail
the_post_thumbnail(array(100,100));

// medium resolution
the_post_thumbnail(array(300,200));

// large resolution
the_post_thumbnail(array(600, 400));

// original
the_post_thumbnail();

You can set how the images should align. It is also possible to assign an own class:

//  left align
the_post_thumbnail(array(100,100), array('class' => 'alignleft'));

//  right align
the_post_thumbnail(array(100,100), array('class' => 'alignright'));

//  center
the_post_thumbnail(array(100,100), array('class' => 'aligncenter'));

// align right and the class  'my_own_class'
the_post_thumbnail(array(100,100), array('class' => 'alignright my_own_class'));

The 3rd possibility is the control of the images size with an array of height and width:
For this purpose we suppose that the settings for thumbnail is 150×150, for medium 300×200 and for large 600×400.

// thumbnail scaled to 60x60 pixel
the_post_thumbnail(array(60,60), array('class' => 'alignleft'));

// original thumbnail
the_post_thumbnail(array(150,150), array('class' => 'alignleft'));

// medium resolution scaled to 200x133 pixel
the_post_thumbnail(array(200,200), array('class' => 'alignleft'));

// large resolution scaled to 400x266 Pixel
the_post_thumbnail(array(400,345), array('class' => 'alignleft'));

We see that the image proportions are always maintained, even if one specifies crooked values.

For the Theme Designers is this not necessarily easier, because no one knows what the user will put in his settings o his library. One way to approach this problem, to query the options for the various sizes:

// width of the thumbnails
get_option('thumbnail_size_w');

//  height of the thumbnails
get_option('thumbnail_size_h');

//  height of the medium resolution
get_option('medium_size_h');

//  width of the large resolution
get_option('large_size_w');

//  1 = Crop thumbnail to exact dimensions, 0 = Crop off
get_option('thumbnail_crop')

You can change these values in your theme.

$w = get_option('thumbnail_size_w') / 2;
$h = get_option('thumbnail_size_h') /2;

the_post_thumbnail(array($w, $h), array('class' => 'alignleft'));

Here another example: If the size of a thumbnail is bigger than 100×100 and crop is activated, then the thumbnail should be resized to 100×100, otherwise use the original thumbnail.

if(get_option('thumbnail_size_w') > 100 && get_option('thumbnail_crop') == 1) {
    the_post_thumbnail(array(100,100));
}else{
    the_post_thumbnail('thumbnail');
}

What Matt is saying?

I wouldn’t recommend anyone use the named arguments for the_post_thumbnail, like ‘thumbnail’, could you remove those from your tutorial.

Inspired by

15 Top most popular wordpress plugins in world

Due to wordpress plugins, wordpress became so much powerful and successful CMS in the world. So we collected 15 Top most popular wordpress plugins which are downloaded most in the world.

In last few years wordpress become most popular CMS in the world. WordPress has great support of wordpress plugins which are free.
Many people many types of wordpress plugins as per their use.

most popular wordpress plugins

most popular wordpress plugins
most popular wordpress plugins

Here I am going to give you the list of most popular wordpress plugins which are downloaded millions times.
I recommend if you hosted your website with wordpress you must use following wordpress plugins.

Akismet

Akismet checks your comments against the Akismet web service to see if they look like spam or not.
This Plugins is downloaded 8,477,963 times.

All in One SEO Pack

Automatically optimizes your WordPress blog for Search Engines (Search Engine Optimization).
This Plugins is downloaded 5,291,396 times.

Google XML Sitemaps

This plugin will generate a special XML sitemap which will help search engines to better index your blog.
This Plugins is downloaded 3,935,776 times.

WP Super Cache

A very fast caching engine for WordPress that produces static html files.
This Plugins is downloaded 94,084 times.

WPtouch iPhone Theme

WPtouch automatically transforms your WordPress blog into an iPhone application-style theme, complete with ajax loading articles and effects, when vie
This Plugins is donwloaded 876,885 times.

NextGEN Gallery

NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option.
This Plugins is downloaded 1,988,926 times.

Contact Form 7

Just another contact form plugin. Simple but flexible.
This Plugins is downloaded 2,021,419 times.

WordPress.com Stats

You can have simple, concise stats with no additional load on your server by plugging into WordPress.com’s stat system.
This Plugins is donwloaded 1,688,181 times.

Fast and Secure Contact Form

A super customizable contact form that lets your visitors send you email. Blocks all common spammer tactics. Spam is no longer a problem.
This Plugins is downloaded 343,069 times.

ourSTATS Widget

create a widget for the ourstats.de counter service
This Plugins is downloaded 80,348 times.

Post videos and photo galleries

Post your videos and photo galleries/flash slideshows easily and in seconds.
This Plugins is downloaded 326,804 times.

AddToAny: Share/Bookmark/Email Button

Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more.
This Plugins is downloaded 995,509 times.

WP-PageNavi

Adds a more advanced paging navigation to your WordPress site.
This Plugins is downloaded 868,432 times.

Google Analyticator

Adds the necessary JavaScript code to enable Google Analytics. Includes widgets for Analytics data display.
This Plugins is downloaded 936,897 times.

WordPress Related Posts

WordPress Related Posts Plugin will generate a related posts via WordPress tags, and add the related posts to feed.
This Plugins is donwloaded 220,359 times.

6 free seo tools from google

6 free seo tools from google, SEO is very important when you are building and maintaining a website, and Google offers FREE tools to help make your job easier.

 

6 free seo tools from google

 

6 free seo tools from google
6 free seo tools from google

Google provides very nice free SEO tools here is list.

Google Analytics:

According to the website, Google Analytics gives you rich insights into your website traffic and marketing effectiveness. User friendly features allow you to see and analyze your traffic data in a whole new way, as well as produce better targeted ads, create higher converting websites and strengthen your marketing initiatives.

Google Trends:

With Google Trends, you can compare the whole world’s interest in the topic of your choice. You can enter up to 5 topics to see how often they have been searched, how often they show up in Google News stories and what geographic locations have searched these topics the most.

Google Keyword Tool:

Undoubtedly one of the most popular in the Google toolbox, the Keyword Tool can be a gigantic help in choosing the right and most effective keywords!

Google Website Optimizer:

A very easy to use free tool for testing your website content to see if it is delivering actionable results. You can find out what leads to the highest conversion rates, listen to your visitors and increase conversions dramatically. A great free tool!

Google Webmaster Tools:

This one gives you detailed reports about your web pages’ visibility in Google search. You can see at a glance how Google crawls and indexes your site, as well as find out about problems Google is having with your site and how to fix them. You can also use the free link reporting tools and query traffic to see which search queries are driving traffic to your site.

Google Traffic Estimator:

This one will come in quite handy as it tells you such important things as average estimated CPC, estimated ad position, estimated daily cost and estimated daily clicks.

Using above tools you can boost your website.

How to create great Landing Page for your website

websites first impression important. That is all depend on your website landing means home page. we shown how to create great Landing Page for your website.

For many of those visitors, it will be the first time they have been on your website, so the last thing you want to do is create a bad first impression that will have those visitors hitting the back button to get our of there as fast as they can.

How to create great Landing Page for your website

How to create great Landing Page for your website
How to create great Landing Page for your website

Here are some tips in writing a great landing page:

Write your landing pages so that a visitor has to do very little thinking about what to do next. Your job is to gently steer visitors in the direction of where you want them to go, and what you want them to do. So, your landing page message should make these things crystal clear. This is no time to be ambiguous! Have strong, concise calls to action that tell visitors what to do!

Bring out the big guns right away! Your promotional offers or freebies should always be above the fold on your landing page, which means on the top half of the page, prominently displayed where visitors can see them. However, you must get them to jump through a hoop or two before handing over the promotion or freebie. In other words, get something you want from them–such as signing up for your email subscription list—prior to delivering the goodies.

Explain the benefits of your products to visitors. People do not buy something because it’s a great widget, they buy based on how a widget benefits them. Remember that, and make it clear how they will benefit from what you are selling.

Lack of trust and credibility in your online business is a big reason why many visitors don’t become buyers. Remove those stumbling blocks to sales by displaying trust and security symbols on your landing pages, along with a brief, reassuring blurb about your business.

Use above guidelines and improve your landing page.

How to Increase Your WordPress Blog Traffic Overnight?

WordPress is used any almost all the blogs as CMS. Many people need the blog traffic for their site. There are many people searching for increasing the traffic of site. Here in this article We given tricks for Increase Your WordPress Blog Traffic Overnight.. Here in this article I found some best tricks to increase blog traffic.

How to Increase Your WordPress Blog Traffic Overnight?

Would you like to increase traffic to your ecommerce business blog overnight?

Believe it or not, this may just be do-able!

How, you ask?

  • With the WordPress OnlyWire Auto Poster plug-in, that’s how!

As you may or may not know, WordPress is probably the most popular and often used blog platform on the World Wide Web according to Technorati. It’s a state of the art publishing platform that focuses on aesthetics, web standards and usability.

How to Increase Your WordPress Blog Traffic Overnight?
How to Increase Your WordPress Blog Traffic Overnight?

Best of all, it’s FREE.

The WordPress Only Wire Auto Poster plug-in can significantly increase traffic to your blog—possibly or even probably—overnight because by using it, you are able to syndicate your blog posts to over 30 of the top social sites simultaneously, with just one click of a button.

No more slogging along doing it the hard way, one at a time. With the OnlyWire plug-in, you are assured of getting your blog post out there where the most people will see it, and hopefully read it.

Just think of how this could help you build valuable backlinks, not to mention improve your website traffic and search engine index speed!

There are two ways to use the WordPress OnlyWire Auto Poster plug-in:

  1. As a Firefox plug-in which will stay in the upper right hand corner of your browser, right next to the Google search bar, or
  2. Install the OnlyWire plug-in from your WordPress blog simply by selecting it from the available WordPress plug-ins, and then clicking install.

It’s just that easy!

OnlyWire is a blogger’s dream come true as a time saver. There are four ways to use it, including the simultaneous submission to social sites feature:

  1. Submission browser button: Syndicates your blog article to 31 social sites at once
  2. Bookmark and share button: This button can be placed on websites and blogs, and allows visitors to share the page on their social networking sites.
  3. Developer API: Automatically submits blog or web content to an existing CMS system at the will of the user.
  4. Account management: A very handy tool within the program that you can use to keep track of everything. It will set up the social sites to be used, show submission history, as well as finalize your submissions to manage a member account.

If you want to save yourself a lot of time on social media marketing, and increase traffic to your blog overnight, then you should take a look at WordPress OnlyWire for your online dropshipping business or other ecommerce enterprise.

http://wordpress.org/extend/plugins/wp-onlywire-auto-poster/