I am working on a website which I did not create on WordPress for a company and I am running into the following issue.
apples are selected the permalink would be:
food.com/fruits/red/apples/. In this example, there are pages dedicated to each of the following:
When you navigate to one of the sub-categories (such as
red), the page shows the content of the items (
apples) instead of the sub-category page itself.
red is selected.
- Page showing: food.com/fruits/red/apples/ (1)
- Permalink showing: food.com/fruits/red/ (2)
- If I don't select a sub-category on the page builder (
applesdoes not have a colour selected) and navigate:
- food.com/fruits/red/ -> apples -> food.com/fruits/colour/apples/
- in this case the
redpage displays, but the permalink is missing the
colourcategory even though you would navigate through
redto get to
If there are multiple items in the sub-category, it displays an item at random. It could be the first item, it could be the third item, however it will be consistent where it displays the same item every time.
I have searched through every plugin
.php file and so far have not been able to find anything useful. What I was able to do however, was print out the hidden permalink, which looks like (1), even though the browser link displays (2).
How do I select a sub-category for each item and still display the sub-category page? Each sub-category page is built and set up, but right now I can't view any of them on the site without removing the sub-category selections from each item.