$$ Looking for help from a php developer on wordpress category navigation $$

Discussion in 'Programming' started by jinsona, May 10, 2009.

  1. #1
    Hi,

    I am looking for somebody who can create a conditional navigation for wordpress categories.

    I found something similar, which does the same ,but for it is pages instead.

    From this site

    http://www.darrenhoyt.com/2008/02/12/creating-two-tiered-conditional-navigation-in-wordpress/
    Code (markup):
    <ul id="nav">
    <?php wp_list_pages('title_li=&depth=1'); ?>
    </ul>
    
    <?php if($post->post_parent)
    $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else
    $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
    if ($children) { ?>
    <ul id="subnav">
    <?php echo $children; ?>
    </ul>
    <?php } else { ?>
    <?php } ?>
    Code (markup):
    I want a similar output, with parent categories above and subcategories on a subnav bar below. Also the sub categories being selected and active once the parent category is selected.

    Please reply or PM me with your quote.
     
    jinsona, May 10, 2009 IP
  2. jinsona

    jinsona Well-Known Member

    Messages:
    1,066
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    140
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Thanks..
    This Job is completed.
     
    jinsona, May 11, 2009 IP