Difference Between A Plugin And A Widget

In a recent post highlighting an awesome plugin which provides an amazing amount of flexibility in terms of displaying widgets on a WordPress powered blog, one of the comments I received was a question asking what the difference is between a plugin and a widget. This post is aimed at answering that question.

Instead of coming up with my own definition, I’ll publish what the WordPress Codex has to say regarding each term.

Plugins are tools to extend the functionality of WordPress.

WordPress Widgets are also known as “sidebar accessories” which are WordPress Plugins or add-ons to your WordPress blog sidebar.

So there you have it. WordPress plugins and WordPress widgets are one in the same but used differently. I can see how one could confuse the two but think of it this way, you have to install a plugin in order to use a widget. Reminds me of the question, which came first, the chicken or the egg? I’ll take answers to that question in the comments.

Comment with Your Facebook Account

9 Responses to this post:

  1. Shantanu Goel
    11.6.08

    A plugin by definition is something that can “hook” into an existing program and extend its functionality. This makes a WP plugin as well as a widget a kind of plugin. However, the main difference is that a plugin can provide a widget but not the other way round, so that solves the chicken or the egg problem. Moreover, a plugin can extend functionality anywhere but a widget can only extend the sidebar.

  2. Tom Slayer
    11.6.08

    @ Shantanu Goel – with you comment you just confused WP newbies. Where is it written that i can’t widgetize my footer?

  3. Jeff Chandler
    11.6.08

    You can certainly widgetize the footer or any other part of your WordPress theme. However, those widgetized parts are called sidebars even if those areas are not appear on any side of the WordPress theme.

  4. Jeff, I’m looking for a tool that will do the following: when I post to my California mortgage blog, the widget or plug-in will post my blog post on various social media sites. Do you know of anything like this?

  5. Yasir Khan
    11.6.08

    Great post! This is just the information I was looking for. Being a newbie, these kind of things confuse me.

    Thanks for sharing

    Yasir

  6. Andi Himawan
    11.9.08

    nice post. i like your article brother. very helpfull

  7. Macbook Pro 13
    1.16.09

    you have to install a plugin in order to use a widget. Yes, the widget is the incarnate of plugin.

    Good post.

  8. CSS Coder
    4.9.09

    A client asked me to make a theme widget ready. I was not quite sure the difference btw widget and plugin, though i find articles about making a theme widget ready. Now, Got the clear picture.

    Thanks Jeff.

  9. Matthew Sapaula
    4.28.09

    Do you have a list of widgets that are wordpress 2.7.1 compatible?

What do you think? Please leave a comment:





Copyright © 2005 - 2011 Performancing | Recommending a Happy Life

Powered by WordPress