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 »

  • 200. Money Blue Book  |  February 14th, 2008 at 11:57 pm

    Does anyone know how to add a rel=”nofollow” to links in the Sticky Menu? Please email me. Thanks…it’s been driving me crazy

  • 199. ZYV  |  February 8th, 2008 at 4:26 pm

    I wonder if you are interested in the Russian translation at all (I didn’t get a reply to my last email). It’s ready anyways, since I managed to generate a PO-file from source by myself.

    P.S. It would be infinitely cool if the next version could populate the menus from the list of static pages and/or categories. NAVT is way to bloated for most of us.

  • 198. Ina  |  February 6th, 2008 at 12:14 pm

    I posted a question a while ago on how to show an active menu item. I didn’t get an answer so I found the solution myself. You can find it at http://www.inacode.com/wordpress/sticky-menu-plugin-for-wordpress/
    Just look uner comments …

  • 197. Mattz  |  January 8th, 2008 at 12:57 am

    Hi,

    This is a very nice plugin !

    On the latest version I see that the tables are nog created per user.

    I’m on MU installation where the table prefix looks recognized well (seeing the queries made where tables don’t exist), but the tables are not created when they should.

    What should be checked ?

    Thanks

  • 196. Gordie  |  November 19th, 2007 at 12:50 am

    Hello, I’ve tryed your plugins and I think you could make some improvement :
    -submenus
    -different types of links :
    -link
    -category
    -page
    -posts…

    where the default title, if empty when you set the menu, is the title of the selected category/page/post.
    >this should make your plugin gengo-compatible, which is very cool !
    Also, URLS should be considered to be inside wordpress if no “http://…” is set. So if you move your blog, you don’t need to reconfigure the menu.
    ;)

  • 195. Gordie  |  November 19th, 2007 at 12:38 am

    Hello, you have an error (or, at least; a bad writted line) in your plugin, making it incompatible with gengo.
    The right code should be

    add_action(’init’, ’stickymenu_init’);

    function stickymenu_init () {
    load_plugin_textdomain(’stickymenu’, ‘wp-content/plugins/stickymenu’);
    }

    instead of just
    load_plugin_textdomain(’stickymenu’.

    Just change this and it fixes it !

  • 194. Abhijeet Maharana »&hellip  |  November 17th, 2007 at 10:57 pm

    […] Sticky Menu It allows you to create menus that link to internal content or external URLs. […]

  • 193. Robert Bergström  |  November 9th, 2007 at 11:49 pm

    Same problem here.
    WordPress database error: [Table ‘****.wp_stickymenu’ doesn’t exist]
    SELECT * FROM `wp_stickymenu` WHERE `menu` = ‘top’ AND `disabled` 1 ORDER BY `weight` ASC…

    Surely a problem with the latest WP 2.3.1. Hopefully a fix soon? I downloaded a nice theme that has Sticky Menu embedded…

    Cheers.

  • 192. Elena  |  November 3rd, 2007 at 1:42 am

    Hi! unfortunately I could not install this plugin, and I need to, cause my theme uses it

    I’ve got error: Table ‘db.wp_stickymenu’ doesn’t exist

    Wp version is 2.3, Mysql 5 linux. Is this plugin suppose to make new table itself, or I should do it (and I don’t know how to)?

  • 191. alias  |  October 20th, 2007 at 7:48 pm

    any way to have menus based on user login

    so one code that switches to a different menu based on user level

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