Sticky Menu, a plugin for WordPress

July 6th, 2007 ericdes

I wrote this little plugin to easily create menus in WordPress.

Normal use of WordPress to create menus:

Because WordPress normally creates menus automatically, for example from a list of categories or pages, you have to exclude manually all items you don’t want in your menu, which can be a lengthy process if you have a lot of categories or pages.

Also, you can’t mix categories and pages in a same menu. You can’t put a link to a subdomain, which could be the case if you have a forum running outside WordPress for example.

What Sticky Menu improves:

Sticky Menu lets you define an unlimited number of menus, in which

you list the exact number of menu items you want to appear. Menu items can link to any pages, posts, etc., in your site or any URLs exterior to your site. You can define a class name for each menu item.

With Sticky Menu being activated, you go to the admin board and look for Sticky Menu in the ‘Manage’ section. There, you create as many menus and menu items as you’d like. In this example, I created a menu named ‘Main’ with 4 menu items: Home, Fun, About me, Contact me.

Sticky Menu's screenshot - Click to enlarge
Then I edited the template files header.php, footer.php, sidebar.php to add these lines:

$menu = new stickymenu;
$menu->display_menu('menu=Main'); # Will display menu 'Main' here

Sticky Menu - See the result!

(Please note that the names are case-sensitive, e.g. ‘Main’ is different than ‘main’.)


5/21/2008: Sticky Menu 1.41 - Fixed type bug related to ‘class’ field.

Download links to the Sticky Menu plugin:

Sticky Menu 1.41 (tar.gz)

Sticky Menu 1.41 (.zip)


Sticky Menu Download Area (History)

Entry Filed under: WordPress plugins

218 Comments Add your own

Pages: « 22 21 20 19 18 [17] 16 15 14 13 121 »

  • 170. Byron  |  July 5th, 2007 at 6:16 pm

    I tried to create new menu items but when I do I get this error:

    WordPress database error: [Table ‘golfersh_wrdp1.wp_stickymenu’ doesn’t exist]
    SELECT DISTINCT menu FROM `wp_stickymenu`

    WordPress database error: [Table ‘golfersh_wrdp1.wp_stickymenu’ doesn’t exist]
    INSERT INTO `wp_stickymenu` (`name`, `link`, `menu`, `class`, `weight`, `disabled`) VALUES(’Test1′, ‘http://www.golfershole.net/test1/’, ‘main’, ”, 0, 0);

    WordPress database error: [Table ‘golfersh_wrdp1.wp_stickymenu’ doesn’t exist]
    INSERT INTO `wp_stickymenu` (`name`, `link`, `menu`, `class`, `weight`, `disabled`) VALUES(’Test2′, ‘http://www.golfershole.net/test2/’, ‘main’, ”, 1, 0);

    WordPress database error: [Table ‘golfersh_wrdp1.wp_stickymenu’ doesn’t exist]
    INSERT INTO `wp_stickymenu` (`name`, `link`, `menu`, `class`, `weight`, `disabled`) VALUES(’Test3′, ‘http://www.golfershole.net/test3/’, ‘main’, ”, 2, 0);

    WordPress database error: [Table ‘golfersh_wrdp1.wp_stickymenu’ doesn’t exist]
    INSERT INTO `wp_stickymenu` (`name`, `link`, `menu`, `class`, `weight`, `disabled`) VALUES(’Test4′, ‘http://www.golfershole.net/test4/’, ‘main’, ”, 3, 0);

    WordPress database error: [Table ‘golfersh_wrdp1.wp_stickymenu’ doesn’t exist]
    INSERT INTO `wp_stickymenu` (`name`, `link`, `menu`, `class`, `weight`, `disabled`) VALUES(’Test5′, ‘http://www.golfershole.net/test5/’, ‘main’, ”, 4, 0);

  • 169. Byron  |  July 5th, 2007 at 12:54 pm

    Hello, I have installed this plugin As a part of your golf theme. When I activate the plugin I get this error…

    WordPress database error: [Table ‘golfersh_wrdp1.wp_stickymenu’ doesn’t exist]
    SELECT DISTINCT menu FROM `wp_stickymenu`

    and

    WordPress database error: [Table ‘golfersh_wrdp1.wp_stickymenu’ doesn’t exist]
    SELECT * FROM `wp_stickymenu` ORDER BY `menu`, `weight` ASC

    Website: http://www.golfershole.net

    Your assistence would be greatly appreciated.

  • 168. Ramon  |  July 5th, 2007 at 8:17 am

    Hello,

    I have this message when i try to enable the menu :

    [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘)’ at line 1]
    UPDATE `wp_stickymenu` SET `disabled` = 0 WHERE id IN ()

    Could you help me, please, i dont understand where is the probleme?

    Thank you,

    Ramon Maita

  • 167. tela  |  July 4th, 2007 at 5:36 am

    Actually yes! You are missing something.
    There is the possibility to add new menu items to an existing menu.
    When you are in the Sticky Menu admin page you have right under the Sticky Menu title: Add new menu item(s).
    Just enter the number of menu items you want to add. Click go.
    Then on the next screen you enter all the information for your new menu item. If you have several menus this is where you can choose the menu in which you want to add the new menu items.

  • 166. tricky  |  July 4th, 2007 at 1:23 am

    it’d be nice if you could add more items to already existent menus.

    i created a menu with 5 items, but then i needed to add a 6th one, and i had to re create the whole menu.

    or am i missing something?

  • 165. [i:rrhoblog] » link&hellip  |  June 25th, 2007 at 12:19 am

    […] Sticky Menu, a plugin for WordPress Sticky Menu lets you define an unlimited number of menus, in which you list the exact number of menu items you want to appear. (tags: wordpress plugin wp-plugins) Verwandte Einträge No Related Posts […]

  • 164. This BLOG intentionally l&hellip  |  June 24th, 2007 at 1:19 pm

    […] recently installed the Sticky Menu plugin by ericdes and its made a huge improvement to the way my wordpress install works and […]

  • 163. Word&Press Mu »&hellip  |  June 23rd, 2007 at 10:28 pm

    […] on a Google Map, with a pin at each post. Clicking on a pin pops up a summary and link to the post. Sticky Menu lets you define an unlimited number of menus, in which you list the exact number of menu items you […]

  • 162. taozero.com » My bl&hellip  |  June 22nd, 2007 at 7:34 am

    […] Sticky Menus plugin […]

  • 161. Weblog Tools Collection &&hellip  |  June 22nd, 2007 at 6:42 am

    […] Sticky Menu lets you define an unlimited number of menus, in which you list the exact number of menu items you want to appear. Menu items can link to any pages, posts, etc., in your site or any URLs exterior to your site. You can define a class name for each menu item. […]

Pages: « 22 21 20 19 18 [17] 16 15 14 13 121 »

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed