wordpress navigation help -


i have website consists of following areas,

  • home
  • about us
  • project management
  • small works
  • testimonials
  • contact us
  • current projects

my issue can display navigation bar fine, current projects not acutally page, more of category has collection of posts, how can add nav bar, when user clicks see current projects, shows titles of posts in current_projects category? great.

just add , users pointed /category/current-projects

<?php wp_list_categories('title_li=&depth=1'); ?> 

a more in-depth:

<ul>  <?php wp_list_pages('sort_column=menu_order&title_li='); ?> // output pages.  <?php wp_list_categories('title_li=&depth=1'); ?> // output categories. </ul> 

you can exclude categories showing adding &exclude=5,6,7 (5,6,7 being categories id's want exclude. or &include=3,2,1)

it generates html like:

<ul>     <li><a href="" title="">page one</a></li>     <li><a href="" title="">page two</a></li>     <li><a href="" title="">page three</a></li>     <li><a href="" title="">page for</a></li>     <li><a href="" title="">category one</a></li> </ul> 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -