O'Reilly logo

WordPress 2.7 Complete by Hasin Hayder, April Hodge Silver

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Widgets

Writing a widget is the same as writing a plugin, but with a few additional rules added. In this section we will look at the steps to create a widget and you will see how easy it is, especially if you've already mastered plugins.

Note

A widget is just a plugin with special needs

As you read the chapter, you'll notice that there are a lot of similarities between our plugin code and widget code. This is because a widget is a type of plugin. It just has some additional requirements so that it can function properly as a widget.

Top searched words widget

In this section, we will see how to write a widget that displays the top searched words in the sidebar. The user will be able to choose whether or not to show the counts and how many searched words ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required