1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress Question (Add A Nav Bar Link)

Discussion in 'Blogging' started by ams007, Dec 9, 2008.

  1. ams007

    ams007 Junior Member

    Joined:
    Apr 18, 2008
    Messages:
    198
    Likes Received:
    41
    Location:
    North America
    Hi,

    I want to add a link to nav bar. Header.php nav bar code:

    <div id="navigation_bar">
    <ul>
    <?php wp_list_pages('include=11,2,13&title_li=' ); ?>
    </ul>

    Link is not to a page per se, it's to a post category:

    ivyfam*ilyhealthup*dates dot com/category/general-health-updates

    How do I add the link into the nav bar?

    More info: I'm using wordpress for a content site which also has a blog. I made pages for all the content. Trying to incorporate blog by linking to the above link in the nav bar. Is there a better way?

    Any help or suggestions would be appreciated.
     
    Last edited: Dec 9, 2008
  2. fyber_optic

    fyber_optic Junior Member

    Joined:
    Sep 21, 2008
    Messages:
    127
    Likes Received:
    94
    maybe this is what you want to do.

    Code:
    <div id="navigation_bar">
    <ul>
    <li><?php wp_list_pages('include=11,2,13&title_li=' ); ?></li>
    <li><a href="YOUR LINK HERE">your text here</a></li>
    </ul>
    im really not sure what you want help with please briefly describe what do you want to do.
     
    • Thanks Thanks x 1
  3. emgxxg

    emgxxg Registered Member

    Joined:
    Nov 3, 2008
    Messages:
    93
    Likes Received:
    523
    Like fiber optic said, though the completecode will be.
    Code:
    <div id="navigation_bar">
    <ul>
    <li><?php wp_list_pages('include=11,2,13&title_li=' ); ?></li>
    <li><a href="<?php bloginfo('url'); ?>/category/general-health-updates">General Health Updates</a></li>
    </ul>
    
     
    • Thanks Thanks x 1
  4. ams007

    ams007 Junior Member

    Joined:
    Apr 18, 2008
    Messages:
    198
    Likes Received:
    41
    Location:
    North America
    fyberO that is exactly what I needed.

    THANKS!!!
     
  5. fyber_optic

    fyber_optic Junior Member

    Joined:
    Sep 21, 2008
    Messages:
    127
    Likes Received:
    94
    you are welcome just look me up whenever you need such help. :tee: