Support » Plugins » list page titles individually based on depth and order

  • Hi,

    What I want to do is display my page titles individually based on each page’s depth and order. Each page title corresponds with a secondary nav using a javascript rollover/drop down script. That is why i need them all separate.
    (http://www.300feetout.com/)

    Here is the code for the top nav:

    <div id="home-nav" onMouseOut="Clear();">
    			<ul>
    <li id="hn1"><a href="<?php echo get_permalink(4); ?>" onMouseOver="Show('1')"><?php $pageID = 4; $page = get_post($pageID); echo $page->post_title; ?></a></li>
    	<li id="hn2"><a href="<?php echo get_permalink(6); ?>" onMouseOver="Show('2')"><?php $pageID = 6; $page = get_post($pageID); echo $page->post_title; ?></a></li>
    	<li id="hn3"><a href="<?php echo get_permalink(8); ?>" onMouseOver="Show('3')"><?php $pageID = 8; $page = get_post($pageID); echo $page->post_title; ?></a></li>
    	<li id="hn4"><a href="<?php echo get_permalink(12); ?>" onMouseOver="Clear();"><?php $pageID = 12; $page = get_post($pageID); echo $page->post_title; ?></a></li>
    	<li id="hn5"><a href="<?php echo get_permalink(10); ?>" onMouseOver="Clear();"><?php $pageID = 10; $page = get_post($pageID); echo $page->post_title; ?></a></li>
      			</ul>
    		</div>	<!-- #homenav -->

    This works on displaying each page title using page IDs. However, id like to generate the page title based on each pages depth and order. I want it to be depth=1 and order=1,2,3, etc. That way, I can create the entire top nav from scratch inside of the admin.

    Next comes the issue of getting each permalink, but that will come later.

    Any takers?

  • The topic ‘list page titles individually based on depth and order’ is closed to new replies.