Using WordPress’ Menu Area

Follow @tristarweb

A little while ago I had a client who wanted multiple dynamic navigation areas on their site. One of these included a large footer sitemap, which was grouped with the parent name as a non-linked title. I looked around for a while and couldn’t find any plug-in that would do this for me…

This is where the Menu area came in to play; although it didn’t pull in the links automatically it was a quick solution to my problem.

Firstly I styled up my links as normal and hard coded in the header titles for each group.

Then in WordPress I went to the Menu area and added several menus for each different category. All you need to do then is select the pages from the sidebar and it’s a simple as that, you can drag each menu item around so they are in the position you need them in.

The last bit is to add the code to pull in your menu items, in replacement of the links you had previously added.

<p class="footer-header" >Category Name</p>
<?php wp_nav_menu(array('menu' => 'menuname1')); ?>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please wrap all source code with [code][/code] tags.

Follow Tristar on Twitter