art_menu_items()


Author Message
Rob

Posted: 11/16/2009
Quote message 

I'm trying to use the art_menu_items() function in my footer to replicate the top menu of the website.
On one site, this has worked fine as we have turned off the sub menu items, so only the top level menu items are shown.
On this next site, we need the sub menu items showing on the top menu, but only want the top level menu items to be displayed as links in the footer.

Can I use this function to achieve this?

I could look at the pages list wordpress function but that would involve hardcoding IDs of pages into the website, and I much prefer a dynamic solution wherever possible.

Any pointers much appreciated!
Cheers,
Rob

 
Garry

Posted: 11/16/2009
Quote message 

function art_menu_items() in your functions.php controls the rendering of navigation menu, you can write a new function for your footer links
 
Rob

Posted: 11/23/2009
Quote message 

Thanks Garry,
I had a quick go at modifying that function but didn't get it doing what I wanted, so I resorted to a hardcoded list of top level page IDs in the pages list wordpress function.

If you (or anyone) happens to have a modified function that only returns top level pages, and you wouldn't mind posting it, that would be useful.

Cheers,
Rob