I am using a plugin called No 404 Errors, so that when people look for a page that does not exist (or misspell the name of a page) on my blog, they are automatically redirected to the home page. The plugin works very well; however, the developer makes the following statement about this plugin : "The only minor complication is that your error page will appear in the output of the wp_list_pages function. The solution is to add the page number to the exclude parameter wherever that function is called." I don't understand this; where do I find the output of the wp_list_pages function? And what difference does it make if it appears in the wp_list_pages function? I could see no difference in the list of pages in my blog after using this plugin and testing it. Thank you for your help, Robert
This function is how old themes show a list of pages, usually to create the navigation menu. If your theme uses another method, for example the custom menus that you can edit in your admin panel, or a custom function that comes with the theme you won't need to worry about it. Just in case you do find it using wp_list_pages() anywhere, you can exclude pages by changing it to wp_list_pages('exclude=PAGE_ID'). If you use the "pages" widget it might use that original function too, can't quite remember since I don't think I've ever used that widget.
Thank you for your comment. In the list of pages, I don't see any added pages, so I imagine that my theme does not add that error page. Thank you again, Robert