WordPress Mandigo Theme: Unable To Remove A Excluded Page From Header Navigation
A WordPress site I recently helped develop had an issue related to the header navigation. From a previous request certain pages had been excluded from the header navigation which can be completed in the Mandigo Theme Options section. In Mandigo you can simply check any page to exclude it from the header navigation. Typically if you want to simply add it back to the navigation you remove the check and the page will show in the header navigation in the order in which you have configured it to display using the Order Attribute. In this particular case when I attempted to remove the check and then click the Mandigo Update Options button it appeared to be successful but then the check would still exist in check box I had just removed it from. Below I describe the issue, how I realized what the conflict was, and how to resolve the problem.
View Of Mandigo Theme Options: Pages to Exclude from Header Navigation
As you can see at the bottom of the above image if you add a check to each page or sub page it will no longer display in the header navigation or in the header sub navigation for sub pages. After trying to figure out the issue of not being able to remove a check mark from a specific page I finally stumbled upon the issue which displayed in Google’s Chrome browser complaining of a redirection loop as displayed in the below image.
Google Chrome Error: This Webpage Has A Redirection Loop
This made me look into another WordPress plugin I had installed called Redirection which immediately made me realize what the issue was. By default the WordPress Redirection plugin monitors post/page URL changes and will automatically redirect old URL’s to the new ones. What had happened appears to be someone changed the URL structure of the page I could not remove the header navigation exclusion from. In doing so the page had a redirect added automatically which in return created a redirect URL loop. So I removed the automatically created redirection and then turned off the automatic redirection monitoring as displayed in the below image.
WordPress Redirection Plugin: Turn Off URL Redirection Monitoring
After turning the URL monitoring off and removed the automatically generated redirected URL’s I had no issue adding or removing pages from the header navigation in the Mandigo Theme Options.