Removing CPT slug from URL results in 404 error for archive page
It took some time to figure out the issue, but I got it done. Passing “https://wordpress.stackexchange.com/” for rewrite slug is not recommended, since it causes more problem than it solves, as in this case, causing 404 error in other pages. So removing it was the first step. Next, I had to write the following code … Read more