<?php nerds... I need your help.

by timber
4 replies
  • WEB DESIGN
  • |
Okay, I've narrowed down the problem with my nav bar at the top of my site. I think.

I believe it's this code from the header:

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

suposidly, it's pulling the title of the page, and displaying it in front of the nav bar, therefore, blocking the links in the nav bar out.

The problem, is that when ever I remove title_li= or try to adjust it, I either get what ever value is after = being displayed, or an error.

I tried and serached through the wp codex, and found some soloutions, but when I try them, I just get "home" and that's it, nothing else on the nav bar.

Anyone have any tips?

look for yourself at:
The Guitar Reviews

Thanks for your patience everyone... I know it's just some little thing...

Thanks again.
#&ltphp #<php #nerds
  • Profile picture of the author LucindaWatrous
    You'd probably get more help in the programming thread. Try posting there to see if anyone bites.
    Signature

    Lucinda Watrous--Freelance Writer and Web Designer
    http://lucindauncensored.com
    http://itsfoodtastic.com

    {{ DiscussionBoard.errors[2233731].message }}
    • Profile picture of the author L Chandler
      Ok, I'm not exactly following your post - it's not your fault it is kinda getting late here BUT when I look at the site I do see your problem.

      The links are basically wrapping into a second line and the 2nd line is covering the first line - mostly because it is so long.

      wp_list_pages - pulls up all pages in WP
      title_li= - basically tells WP to NOT display the title for the list. If you remove that then you will get a header named "Pages" followed by the links.

      I think your problem is, you need to not display all Pages - thus shortening the list making it only one line

      If this is my site, I would do this

      <?php wp_list_pages('title_li=&exclude=143'); ?>

      I think page 143 is your home page and that's what is causing the wrap/hiding. By excluding it from the menu it might take care of the situation.

      Try that first then go from there it if doesn't work.
      {{ DiscussionBoard.errors[2233771].message }}
  • Profile picture of the author timber
    Hey Chandler... that got it.. Perfect
    Thanks a ton...
    Signature

    {{ DiscussionBoard.errors[2233839].message }}
  • Profile picture of the author L Chandler
    Good to hear, most welcome.
    {{ DiscussionBoard.errors[2238323].message }}

Trending Topics