Navigation half predefined half dynamic
-
Hi WordPress community,
I’m trying to create a half predefined half dynamic navigation below:
<div id='cssmenu'> <ul> <li class='active has-sub'> <a href='<?php echo get_page_link(1); ?>'><span><?php echo get_the_title(1); ?></span></a> <ul> <li><a href='#'><span>SUBNAV of id1</span></a> </ul> </li> <li class='active has-sub'> <a href='<?php echo get_page_link(2); ?>'><span><?php echo get_the_title(2); ?></span></a> <ul> <li><a href='#'><span>SUBNAV of id2</span></a> </ul> </li> </ul> </div> </div>
The top level navigation needs to stay predefined due to the website design / responsive reasons.
But I need for the SUBNAV items to be dynamic? for example id1 may have 4 SUBNAV items and id2 may have 2 items. How would I go about doing this?
Any help would be much appreciated ^_^
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Navigation half predefined half dynamic’ is closed to new replies.