Tuesday 16 July 2013

WordPress Plugin Development





WordPress is a free CMS (Content Management System) and open source blogging tool; it has totally changed the look on the internet, whether we are talking about software or website development.

Now in this part we will be discussing how to create a wordpress plugin with our simple but effective steps. when we talk about plugins, then most probably the non tech guys will think of a complex function, followed by the knowledge of lot of tech languages which is just a myth and this is what we will show here, that how easy it is to create a WordPress plugin, all you need to know is a bit of PHP and a basic understanding of WP file structure and Admin panel.

Now before starting up with how to create a WP plugin, We would first like to discuss why to develop a wordpress plugin.

Why to have a WordPress plugin?

In simple words if we want to define plugins, then we can say that these are same as addons added to your browser for making certain things simpler for you.in the same way Plugins are added to Wordpress for making things easy and simple.

Example:

All in one SEO plugin from WordPress is a plugin that help you in optimizing your site and making it search engine friendly with it simple but effective features at a single place, some of the features provided by. All in one SEO plugin are:

  • Google Analytic support
  • Support for Custom Post Types
  • Advanced Canonical URLs
  • Fine tune Page Navigational Links
  • Built-in API so other plugins/themes can access and extend functionality
  • ONLY plugin to provide SEO Integration for WP e-Commerce sites
  • Nonce Security
  • Support for CMS-style WordPress installations
  • Automatically optimizes your titles for search engines
  • Generates META tags automatically
  • Avoids the typical duplicate content found on WordPress blogs
  • For beginners, you don’t even have to look at the options, it works out-of-the-box. Just install.
  • For advanced users, you can fine-tune everything
  • You can override any title and set any META description and any META keywords you want.
  • Backward-Compatibility with many other plugins, like Auto Meta, Ultimate Tag Warrior and others.

Now this is what a simple Plugin can offer you.

And developing a pluging will give you a better understanding as how things work at the backend and another benefit is that being a developer you can have a complete control over the function of your plugin.

wordpress customization

Steps of developing a WP plugin:

1. WP Folder Structure

The wordpress folder structure will show you the basic application directory within wordpress, in here you will find a Plugin directory where you can find all the plugins installed,

For smaller plug-ins which only requires a single .php file, you can place them directly into the plug-ins/ directory. But when you start creating more complex applications, it is a better option to create a sub directory named after your plug-in where you can assemble all JavaScript, CSS, and HTML along with the PHP functions.

wordpress customization
Figure 1
wordpress customization
Figure 2

And if you want to provide your plugin to others for download, so that others to get benefited from it, then these are the simple things that you need to keep in mind before providing a readme.txt file, this file should contain your name and functionality of the plugin and further if you want, that people should know about the updates in the plugins then you should provide details about each revision.

2. Starting Your PHP File

Start with a simple PHP file while creating a new plugin. This should be your plug-in’s official name. For example I have created base code and have named the file quick-subscribe-now.php.
The first lines of your plug-in must be comment. This is extremely important as WordPress will be unable to process your file without it. Below is an example code snippet you can copy and mold towards your own.

wordpress customization


3. WordPress Naming Conventions And Best Practices

While writing code it’s best to follow regulations and guides set up by WordPress. Since there are so many functions defined already, you can avoid duplicity by providing prefix label to all your variables and function names.
  1. <?php  
  2. function Subscribe_Widget() {
  3.                  $widget_ops = array( ‘classname’ => ‘subscribe’, ‘description’ => __(‘An example widget that displays a quick subscribe now form.’, ‘subscribe’) );
  4.                  $control_ops = array( ‘width’ => 300, ‘height’ => 350, ‘id_base’ => ‘subscribe-widget’ );
  5.                  $this->WP_Widget( ‘subscribe-widget’, __(‘Subscribe Widget’, ‘subscribe’), $widget_ops, $control_ops );
  6.      }// the code
  7. }    
  8. ?>  

In the above examples we prefixed all our setting names with quick-subscribe-now. This can be replaced with any keyword of your choosing usually related to your plugin name.

4. Filters and Actions

Filters and actions are two completely different concepts which relate deeply in the ways they manipulate plugin data.

Understanding Add_filter()

filter is used on a bit of text or data being passed into WordPress. With filters you are quite literally able to filter content through your own custom written functions to change data in any way.

Understanding Add_action()

Actions are similar to filters in that they don’t work on bits of data but instead target pre-defined areas in your templates and admin panel.

Example you can apply an action whenever you update or edit a page’s content. A small list of example actions:

  • publish_post – called when a post is published or when status is changed into “published”
  • wp_head – called when the template is loaded and runs the wp_head() function
  • trackback_post – called whenever a new trackback is added into a post

Installing And Running The Plugin

I’ve created a sample file for the plugin to demo if you’d like to skip the hard coding. Simply download this file (rename it to .php) or copy/paste the code into a new PHP document and upload this to your /wp-content/plugins directory.

wordpress customization
wordpress customization

Once completed you’ll want to access the WordPress administration panel and browse your current set of plug-ins for the demo just installed. Once you activate nothing new will happen, not until we manually add in our function call. To do this simply navigates Appearance -> Editor and look forsingle.php.

These are some of the basics to get you started working within WordPress Plugin development. 

Referred By : Headway Web Solution

7 Social Marketing Strategies For Ecommerce Website




The growth of ecommerce world has created it tough for ecommerce website to attract the visitors in business.

With the help of this post, I’m going to discuss with you seven different strategies which help you to grow your online presence and increase your daily traffic.

1.      Daily Content Posting

 

In social community easiest way to grow up is to post your content frequently or daily. It should be minimum once day on Facebook & 2-3 times on Twitter. Timing also matter, timing of social media is also very important because if you targeting the US Nations then it were useless to post in day, for posting on Facebook 7 pm and for Twitter 6pm is best.

You can also use apps to save your time, there are many free apps are available which help you in schedule posting on your social networking sites.

facebook.twitter

 

2.      Use Images Posting On Facebook

 

By adding images to your posts you can increase the visitor’s traffic. You can generate more than 50 % likes than the average post by adding photos on your facebook post. When you want to promote anything or want to announce something then you can add your link with photo on your post.
View the example below:

facebook image posting

Text-based images are far more effective than normal links or normal images.

 

3.  Social Buttons increase visitors

 

You can increase the number of visitors by embedding social buttons on your site. Social buttons are used to encourage visitors or readers to share the post, article of blog with others. You can use social buttons at different places of your site or blog.
  • Footer of your website and blog
  • In your newsletter
  • In your email signature
  • Within blog post
  • Header of your website and blog

social buttons

 

4. Create Micro Content

 

Some time long content or long post are very time consuming, because visitors have very less time or patience to check those content, they are surrounded with overloaded information. So for that we have to use bite sized of content for easy and quick delivery.

You can also use software to create video clip, which can be easily shared on social networking sites. Some mobile app available in market to create and post video clips. Try Vine, it is a new tool for creating content.

5. Start Twitter Q&A

 

Twitting on twitter is the new way of doing micro blogging. Instead of writing full post you can give the major information of your blog post, because in twitter we can only post 140 characters of content.  Readers use twitter for giving quick update at any moment.

To get the more visitors interaction you can use simple trick by starting weekly Twitter Q&A.  You have encouraged the visitors to ask about your blog, business or website. And you give answers to their questions; you can also use their question as your blog post.

In Twitter Q&A use #tag in your tweets for tagging, it also helps in branding.

 twitter Q&A

 

6. Pins you products on Pinterest

 

Now a day’s Pinterest is one largest social network in the whole world for using of their marketing strategies.

Pinterest is a photo sharing site that allows users to create and manage their image collections such as events, interests, and hobbies.

You can make social button of pinterest on your blog for branding of your products.

Pin for business

 

7. Use Different Titles on Your Blog Posts

 

To get the much attention on your blog post, you have to use attractive title for your blog post to attract the visitors. Follow some tips regarding title optimization:
  • Use everyday language
  • Keep it short & attractive
  • Use common traits (urgency, fear, desire, etc)
  • Start the title with how many links you’re going to make, if you’re post in a form of list.

Conclusion

 

Strategies which are defined in this post is useful for your business development, these marketing strategies are tried and tested; you can utilize the above information for making yourself socially connected with online marketing.


Referred By : Headway Web Solution

Business website development

 


When you are talking about a website development, then there is a lot more difference between a business website and just a website, there are a lot of people opting for, the World Wide Web as scope of business is increasing day by day, with improvements in technologies. Most of the people who opt to get there business online don’t know very basic thing between just a website and a professional business website which leads them to a business failure and they keep on hunting,

“What wrong do they did”

That lead them to a business failure, this article will cover certain very basic website development factors that we often over look while going to have our business online.

Business Website Development Factors:

1. About yourself

Have a very clear description of you and your services or product, so that people don’t have to hunt down “What you are, where you are and what you do “when they land on your website, make your website very user friendly, so that people try to find more about you. People staying more on your site increase the chances of converting them to a prospective client.

2. Simple domain name

Try to opt for a simple domain name that is easy to remember by the users, as “headwaywebsolutions” because having something complex will make it difficult for the users to remember it. Say “web-head-solution-way” or something like that.

3. Site structure

Try to have a very simple navigation system for your website, so that visitors can find all the information easily when they come to your website, make sure that all the important pages of your website can be reached, from no more than two clicks from the home page.

4. Contact us information

One of the biggest mistakes that business can do is making it hard for the visitor to find a contact us form. If you have done this mistake than I am very sure that you will have to shut down very early, as after all good work on your site you will have visitors, but they will not be able to contact you, this will hit you hard. So make sure that the visitor who are coming to your website have a very easy to fill and easy to reach contact form. This will improve your Visitor turnover rate.

5. Testimonials

People who will visit your site always want to know, that are you the right person or firm they were looking for their problems, so to make them comfortable with this part, ask your current clients or customers to drop words about “your work, how they are benefited by your work or services.”  This will make the visitors more comfortable, as people often like to read success stories and by this you will have a very good impression on your prospects even before you start a conversation with them.

6. Call to action

A very basic but effective measure which can increase the number of enquires on your site. Call to action is to, ask your visitor to perform an action that you want them to do. Say you want them to fill the contact us form, then you can use these lines.

  • “Get the form filled and leave all your problems with us”
  • “Fill the form and get a free quote”
  • “Free analysis”
  • “Call us for a free quote”
  • “Subscribe to us”
And many others, this will give a clear instruction or encourage the visitors to perform an action.

7. SEO

Try to keep the site as Search engine friendly as you can, it will give it an extra push in the search results for major search engines. Things to be kept in mind:
  • Domain optimization.
  • Link optimization.
  • Link structure optimization.
  • Content optimization.
  • Keyword optimization.
  • Image optimization.
  • Code optimization.
  • Meta tags optimization.
  • Site map optimization.
  • Robot optimization.
  • Alt tag optimization.
  • Anchor text optimization.
  • H1 tag optimization.
And a few more

8. Content

Then, now and always Content is the king and if you can provide something new on your site which the visitor is looking for then you will generate enormous amount of traffic.
So keep it as fresh and as informative as you can, as major search engines give a lot of important to fresh and relevant content.

9. Hosting

Make it sure that the hosting company, that you are engaged with provides you a secured server so that your site can run in a smooth manner. By this I mean, safe from any kind of malware attack or hacking because it can hit your business hard with respect to your brand image and business too.
These are certain things to be kept in mind while developing a Professional Website for business.

Thanks for reading will keep on discussing facts about it, keep on reading.

Referred By : Headway Web Solution

Tips for Local Search Engine Optimization 2013



We are very familiar with the term search engine optimization, as it’s a process of getting your site ranked for opted keywords through different On page and Off page SEO techniques to generate more and more traffic for your site, which will help you in generating revenue and potential clients.
Now, if you have just launched your business then I have something for you that will help you in generating quick but effective traffic for your site, the thing that I am talking about is Local Search engine optimization.
What is local search engine optimization?
Local search engine optimization is just another technique of search engine optimization which helps you to get your site rank well for your local term; this could be your region, your country or any niche market you want to target.
Example: If you are a software company like us and from India, based in Lucknow, then the possible set of keywords that you want to rank well in your region could be the services provided by you with the country or place your business is working into, these could be:
  • SEO Company India
  • SEO Company Lucknow
  • SEO Services India
  • SEO Services Lucknow
  • Web Development India
  • Web services India
And many others
So for achieving ranking for these keywords and creating a brand of yours. We would suggest you the following:
1.      Local listings:
The best way to express that you belong to a place, is going for local listing, find directories that provide such facilities, it will help you to gain local web presence, few of them are:
  • Google Local Places
  • Yahoo business directory
  • Yellow pages
And many others
2.      Same Address while listing
Use same Physical address as shown on your site for business listing, it will help your business to rank well locally as most of the search engines fetch data from your and other site where you get listed and when they find similar and verified listing of your business, they will give you value for the particular region.
3.      Active in Social networks
One of the most effective ways of creating a brand for your self is getting active with social networking sites and get connected to people, who are looking for you, as social signals play a vital role in ranking your site well currently, Understand it this way “100 Good reviews for your business is far better than 1000 back links from poor PR directories”
4.      Interact locally
Being Active and interacting in local networking groups will help you creating a brand for your business, so try to communicate as much as you can, another way is to talk about the local events happening in the city in your blog.
5.      Video Submission
You can also optimize your videos for local search as currently Youtube is the second most searched engine, so it will add more benefits to your business, as you are providing people information about the field you are related to, it show how knowledgeable you are and will create more trustworthiness for your business in your niche.
These are a few that you can startup with for local Search engine optimization; will discuss further other strategies too.


Referred By : Headway Web Solution