I’ve started to use WP today, and am trying to do some customization to suite my needs.
I’ve chosen one theme with 2 menus top, and let’s call it “mid” menu.
So Let’s assume that main (top menu) consists of:
(Home, Webs, Apps, Photos, Contacts)
And then, I’d like to have different menus for each selection of first one
for Home – no secondary menu
for Webs – “Mid1” menu that has link to pages (web1, web2, web3, web4…)
for Apps – “Mid2” menu that has link to pages (App1, App2, App3, App4…)
for Photos – “Mid3” menu that has link to pages (Gallery1, Gallery2, Gallery3, Gallery4…)
for Contacts – no secondary menu
Is there maybe such plugin that handle this or should I put some if – then somewhere in the code ?
Tx.
I would use WordPress’s built-in Page heirarchy, then generate the submenus based on that heirarchy.
So, you’d need to associate each subpage with it’s parent, which you can do on the right sidebar of the WordPress editor, or use a drag and drop plugin like PageMash:
Then, add some code to your template (probably
page.php
) to list children of the current page. You’ll probably have to tweak this to get exactly what you want, this is just to get you started: