Trying out the widget

Your widget is ready to go! Let's try this widget we have created now:

  1. Save all your changes, and upload your widget to the wp-content/plugins directory.
  2. Go to the Plugins section and you'll see your widget waiting to be activated, as usual.
  3. After you click on the Activate button, you can navigate to Appearance | Widgets. You'll see the widget waiting to be added to a sidebar, as demonstrated in the following screenshot:

  1. Drag the widget to a sidebar, and then click on the little downward arrow to edit it. You'll see the options slide down, as shown in the following screenshot:

  1. You can enter a Title or leave it blank for the default, and choose the Taxonomy that you want to display.
  1. Then, click on Save as you would with any widget.
  2. When you return to the frontend of the site and reload, the new tag cloud will be right there, as shown in the following screenshot: