On previous post, I edited the header.php for including horizontal menu on listing main pages on this site. The code is as below:
42 43 44 45 46 47 48 49 |
|
Now, I want it to be dynamically list all the main pages on this site in horizontal menu. The way to do is using wp_list_pages(); template tag. With this, I don’t have to manual edit the code if new page is added. Below are the new replacement code in header.php.
42 43 44 45 46 |
|
2 Comments
Hi
I tried your method for listing pages horizontally but I am having some trouble.
What is the CSS code on your navmenu?
Hi Hutch,
The css code is in the post as below.
http://www.ivanteoh.com/blog/2008/08/creating-a-h…
I hope it helps.