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 … 18 17 16 15 14 [13] 12 11 10 9 8 … 1 »
130. Darren | April 24th, 2007 at 12:24 am
EXCELLENT PLUGIN, all working fine, one question though. I have constructed a menu I only want to appear on one page. I have specified my menu in header.php, how can I get header.php to change the menu if I access a specific page??
Regards
Darren
129. Die besten WordPress Plug&hellip | April 21st, 2007 at 9:37 pm
[…] Sticky Menu Lets you create custom menus that link to any pages, posts, categories, etc., or any URLs exterior to your site. […]
128. Mazdak.AM | April 19th, 2007 at 2:06 pm
i got this error
‘WordPress database error: [Table ‘mazdakam_wp.wp_stickymenu’ doesn’t exist]
SELECT DISTINCT menu FROM `wp_stickymenu`’
wht shoud i do? i use wp latest version
127. Craig | April 19th, 2007 at 6:40 am
I get this error
WordPress database error: [Table ’stoppoin_wrdp1.wp_stickymenu’ doesn’t exist]
SELECT DISTINCT menu FROM `wp_stickymenu`
I have read
Normally the table (prefix)stickymenu is created when you activate the plugin. You should try to des-activate and re-activate and see if you get any error messages there.
Alternatively, you can create manually the table (prefix)stickymenu (wp_stickymenu in this example) with this SQL command (via phpmyadmin for example):
CREATE TABLE `wp_stickymenu` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(55) NOT NULL,
`link` VARCHAR(255) NOT NULL,
`menu` VARCHAR(55) NOT NULL,
`weight` int(11) NOT NULL DEFAULT ‘0′,
`disabled` TINYINT NOT NULL DEFAULT ‘0′,
PRIMARY KEY (`id`)
) TYPE = MYISAM;
But I am unsure where I would put that?
126. My Top 5 Wordpress Plugin&hellip | April 8th, 2007 at 3:34 am
[…] Sticky Menu - Allows you to customize what pages appear on the menu of your blog-turned-website. Instead of just listing all of the pages like the Wordpress default, it allows you to link to only the pages you want, and even external websites. A little hard to set up, but worth it. I used to use it on here, but now I don’t need it anymore. […]
125. Quality Peoples » Q&hellip | April 8th, 2007 at 2:30 am
[…] Sticky Menu - more control over your pages nav […]
124. Alex Reid | April 3rd, 2007 at 10:52 pm
Great script!
Someone else set this up for our site, and I’m not sure how to add new menu items to a category; how do I go about adding more child selections?
Thanks in advance!
Alex
123. Jürgen | March 17th, 2007 at 9:15 pm
Thanks for the information. Jürgen from Germany.
122. Pablito | March 16th, 2007 at 12:10 am
I mean,
value=”"
(remove spaces)
121. Pablito | March 16th, 2007 at 12:09 am
found some bugs with classes updating…
in INSERT query there is a var
. " '$clases[$i]', "instead of
. " '$classes[$i]', "and you also should add
value=”"
in “class[]” input.
thank you for the plugin!
Pages: « 22 … 18 17 16 15 14 [13] 12 11 10 9 8 … 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