• i have this code for my navigation :

    [Code moderated. Please post code snippets between backticks.]

    when i add it to my header just like that it shows the subpages but when i use this code to replace it:

    [Code moderated. Please post code snippets between backticks.]

    i cannot see my subpages , anybody can help me that be super, maybe another code different template tag??

Viewing 1 replies (of 1 total)
  • Thread Starter pavlos1982

    (@pavlos1982)

    this is the original code:

    [<div id=”menu”>

      <li class=”page_item page-item-2″>Home
      <li class=”page_item page-item-27″>About Us<li class=”page_item page-item-30″>Contact us<li class=”page_item page-item-88″>Sample Menu<li class=”page_item page-item-48″>weddings<li class=”page_item page-item-20″>Corporate

    <li class=”page_item page-item-7″>We do<li class=”page_item page-item-6 current_page_item”>Gallery<li class=”page_item page-item-4″>Contact</div>]

    this is the code in wordpress theme:

    [<div id=”menu”>

      <?php echo preg_replace(‘@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i’,'<li$1><a$2><span>$3</span>’,wp_list_pages(‘echo=0&orderby=name&exlude=181&title_li=&depth=1’)); ?>

    </div>]

    it works but just dont show my subnavigation pages, parent pages

    sorry the code would nt show up before so i had to repost it

Viewing 1 replies (of 1 total)
  • The topic ‘adding navigation to show the subpages multilevel’ is closed to new replies.