Obviously, you’ll want to start by installing and activating the widget! (If you have any advanced caching plugins enabled, such as WP Super Cache, make sure you clear your site cache once installation is complete.)
- Navigate to your Widgets subpanel under the Appearance menu.
- Drag the widget into one or more sidebars.
- Enter your gdgt username (if you don’t have one, sign up here ).
- Specify the size of your widget.
- That’s it!
If you’d like to add the widget directly to your template, call the widget using the
<?php gdgt_gadget_list_widget('USERNAME', array('OPTION'=>VALUE)); ?> template tag. The
username is required, while
options is an optional associative array allowing you to control the following:
- width (number of pixels, default 300, minimum 180, maximum 500)
- height (number of pixels, default 265, minimum 200, maximum 500)
- showcount (toggles display of list counts, true or false, default true)
<?php gdgt_gadget_list_widget('ryan', array('width'=>300, 'height'=>350, 'showcount'=>true)); ?>
- Is there a minimum and maximum size for the widget?
Yes. The widget can scale between 180-500 pixels wide, and 200-500 pixels tall.
- The list count is set to yes, why isn’t it showing?
If you’ve set the width to lower than 200 pixels, the widget’s list count is disabled.
Contributors & Developers
“gdgt gadget list widget” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Fixed class constructor error when running on PHP 4
- Fixed errors regarding showing the product count.
- Remote JSON feed replaces serialized PHP
- Use WordPress HTTP API for improved compatibility with WordPress installs
- Properly escape outputted text