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.
![]()
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
(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 Download Area (History)
Entry Filed under: WordPress plugins


218 Comments Add your own
Pages: « 22 [21] 20 19 18 17 16 15 14 13 12 … 1 »
210. David | June 4th, 2008 at 3:47 am
For those of you using WP 2.5 and having problems adding menus I had a similar problem which was fixed by adding the DB manually as described in post 172
209. ericdes | May 21st, 2008 at 3:22 pm
Hi Chris,
Thank you for pointing out the typo with the field ‘class’. It’s now corrected with release 1.41.
Eric.
208. FW | May 20th, 2008 at 8:23 pm
I am using wordpress 2.5 and when I add a menu it does nothing. Doesn’t accept any entries. It doesn’t save them
Help
207. Chris | May 20th, 2008 at 2:55 pm
Great plugin!
However, in version 1.4 you have a syntax problem in your code on line 124 - when adding a new link item the class does not get updated in the database…
. " '$clases[$i]', "Should be…
. " '$classes[$i]', "..noitice how classes was misspelled.
206. Suren | May 5th, 2008 at 4:37 pm
The plugin is installed under WP 2.5. But the problem is after I add new menu items and hit the save button. It does nothing. the pligin it not saving my menu items in WP 2.5.
I really like this plugin, but it seems I cannot use it.
205. JJ | April 18th, 2008 at 8:30 am
Hi guys,
I have created the top menu. But I wish to know how can I make a drop down menu ?
Please can anyone advise ?
Thanks
204. Anne toft | April 16th, 2008 at 12:26 pm
a friend told my this should be a great plugin, but does it work with wordpress 2.5 ?
Thanks
203. Imokon | April 4th, 2008 at 9:31 am
I am also getting the database errors and am not sure if I need to make the Database myself or not - as it stands now the database it wants isn’t something I am able to create :/
I looked through your overall installation instructions and browsed through several of your comments.
Any heads up is awsome.
Kudos to your efforts.
202. Using Wordpress To&hellip | March 29th, 2008 at 4:04 am
[…] sticky menu plugin is a terrific plugin that lets you specify exactly what should be in a listing of links. Many […]
201. Les Booth | March 20th, 2008 at 7:01 pm
I think the idea of Sticky Menu is good.. but I don’t see the value in using it on a template that has a widget driven directory.
In less time than it takes to set up a Sticky Menu, I can create a ‘text box’ in the widgets and build a custom menu in about any format desired. ??
So .. if anyone can tell me HOW sticky menu is an improvement over this and WHY I should continue my attempts to get it to work - it has not worked yet “. ( … I would appreciate the feedback: here and to my address above.
Thanks …
net500cg
Pages: « 22 [21] 20 19 18 17 16 15 14 13 12 … 1 »
Leave a Comment
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