I have Magento installed in the root directory with the HelloCoco Magento theme, and have WordPress installed in a sub-directory using the WordPress HelloCoco theme.
It is the WordPress theme that I am having this problem with. There is nothing wrong with the permalinks and changing their structure does not affect this problem.
I have tried deleting everything and using a fresh WordPress installation and database and still have the same problem. Can you please provide some clear guidance as I have wasted so many hours trying to resolve this.