Many navigation bars in WordPress are created dynamically with this piece of code
Since it is created dynamically, people often wonder how to exclude certain pages from the navigation. I have a lot more pages than I want listed there and I need a way to remove them.
Here I’m going to list three ways that you can do that. One is a code solution and the other two require the use of a plugin.