WordPress List Pages

On previous post, I edited the header.php for including horizontal menu on listing main pages on this site. The code is as below:

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.

Related Posts

References

Comments

Comments powered by Disqus