Forums

[resolved] Get a page to show up in my Navigation Menu. (5 posts)

  1. Tyler3283
    Member
    Posted 3 years ago #

    Hey everyone -

    I've been searching around and gathered bits and pieces but think I'm still missing one step. I have a blog - http://www.tylerberry.com and have created some tutorial videos I'm going to post. I didn't want them to be in the same body as my blog so I decided to give them their own page. I created the page no problem, added the video and everything previews fine. I hit publish and I can't find it on my main page anywhere. After reading a bunch, it seems that I need to incorporate the wp_list_pages() tag somehere in my Header.php in my template directory . . . correct? I just don't know where to put it. I want the pages I create to show up under "Navigation" on the top left of my page. Currently it has home and about. Anyone have any suggestions? Thanks in advance.
    TB

  2. greyisgood
    Member
    Posted 3 years ago #

    not with this theme. it's in your sidebar file

    currently you have pages showing up as

    <h2>Navigation</h2>
    			<ul>
    <li><a href="http://tylerberry.com" rel="nofollow">Home</a></li>
    <li><a href="http://tylerberry.com/about/" rel="nofollow">About</a></li>
    			</ul>

    just add the function on a new list line where you want it
    <li>...</li>

  3. Tyler3283
    Member
    Posted 3 years ago #

    Ok - That's a huge help Grey and much appreciated. I didn't find it in my sidebar but I did find it in nav_menu.php. Here's where me being a total nOOb shows up . . . I added this line exactly:

    <li >wp_list_pages()</li >

    Checked back to my blog and it showed up under navigation! Except instead of my new page showing up, it says, "wp_list_pages()". Clearly I'm missing some more bit's of html.
    TB

  4. greyisgood
    Member
    Posted 3 years ago #

    okay, it need to be written as the whole php tag and function, so insert the line:

    <li><?php wp_list_pages('title_li=' ); ?></li>

    ;)

  5. Tyler3283
    Member
    Posted 3 years ago #

    Grey is definitely good! Thanks for your help - it now works. I really appreciate it!
    TB

Topic Closed

This topic has been closed to new replies.

About this Topic