Zelig Dropdown Links Plugin

Zelig Dropdown Links plugin displays the links in the sidebar as a simple dropdown list (select box). If you have more link categories, every one will be shown in it’s own list. This is supposed to replace the original get_links_list() function and should be useful if you have a lot of links, but you don’t want […]

Zelig Dropdown Links plugin displays the links in the sidebar as a simple dropdown list (select box). If you have more link categories, every one will be shown in it’s own list. This is supposed to replace the original get_links_list() function and should be useful if you have a lot of links, but you don’t want to clutter up your sidebar with them!

Installation & useage:

  1. Download Zelig Dropdown Links v1.1, and extract to a local folder.
  2. Upload zelig-dropdown-links.php file to wp-content/plugins/ folder.
  3. Acitvate from the plugin page in WordPress admin panel.
  4. Place following code in your template page, outside the loop (usually in sidebar):
<?php zelig_dropdown_links(); ?> 

The zelig_dropdown_links() function has some parameters you can pass (please note that options syntax is changed from version 1.0):

ParameterValuesDescriptionDefault
boxwidthnumberwidth size (in pixel) of the list box. If you don’t use this parameter or if you set it to 0, the list box will assume the width of the longest category name it contains. If you set a width value, longer names may be truncated at that point, depending on browser (IE6…)0
excludenumber or comma separated list of numberslink category or categories (ID numbers) to hide. If not set or set to 0, all link categories will be displayed.0
includenumber or comma separated list of numberslink category or categories (ID numbers) to display. If not set or set to 0, all link categories will be displayed.0
title0
1
set to 0 if you don’t want the first row of the list as a title with the name of the link category (text appearing in the list box when it’s closed).1

EXAMPLES:

<?php zelig_dropdown_links('boxwidth=120'); ?> 

Set the width of the list to 120 pixels.

<?php zelig_dropdown_links('boxwidth=120&exclude=1'); ?> 

Set the width of the list to 120 pixels and hide link category with ID 1.

<?php zelig_dropdown_links('boxwidth=120&exclude=1,2,3'); ?> 

Set the width of the list to 120 pixels and hide link categories with ID 1, 2 and 3.

<?php zelig_dropdown_links('include=1&title=0'); ?> 

Display only link category with ID 1 and without the category name as a list “title”.

Zelig Dropdown Links

Zelig Dropdown Links, WordPress, Plugin