Jappler Menus in WordPress

WordPress

Awhile back, I put something together (sons of suckerfish and sliding doors) and then was recently asked how to get this to work dynamically in WordPress.

The key to getting this to work dynamically is to first choose how you want to organize your site. I have done numerous sites based on categories and a lot also done using pages. Once you figure out what you want your menus to be driven from (page hierarchy or category hierarchy) you can then use some built in WordPress functions to dynamically fill out your menus.

For categories: you will want to use the wp_list_categories function
Example: (using the CSS and JS from the article I posted previously)

<div id="nav">
<ul>

</ul>
</div>

With that example, you can exclude certain categories, and their will not be a “Categories” text as the first level of the list. For more options, check out the wp_list_categories documentation.

For categories: you will want to use the wp_list_pages function
Example: (using the CSS and JS from the article I posted previously)

<div id="nav">
<ul>

</ul>
</div>

With that example, you can exclude certain pages, and their will not be a “Pages” text as the first level of the list. For more options, check out the wp_list_pages documentation.

There is also another option (plugins) I have used that extends both of those functions: Fold Category List, Fold Page List.

2 thoughts on “Jappler Menus in WordPress”

Leave a Reply

Your email address will not be published.
*
*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Web Development

don't overlook bbpress!

It has been awhile since I worked with bbPress (lightweight, fast, and secure forum software), but I recently finished up a small project working on a custom theme for bbPress. If you are looking for forum software, and better yet – and also use WordPress – bbPress might be a good solution for you. There […]

Hosting HOWTOs Web Development

Jappler Recommends: CPsafe.

Start the year of right – set up a backup system! A few years ago, I documented how to backup your web sites, databases, email, etc when your host uses CPanel to a remote FTP server. Since then, there have been several CPanel updates and Perl updates that the script no longer works so I […]