perch_categories() produces a list of categories. It looks like you're then trying to filter it by categories categorised as the current category, which is as confusing as it sounds.
Okay, I've got that in there now and I've gone through the whole page setup again. For a while the category URLS were trying to go to /attractions/attractions/historical-places for example, but changing the link in the category template to this fixed that.
Is this supposed to be your list of categories?
Yes, that is.
perch_categories()
produces a list of categories. It looks like you're then trying to filter it by categories categorised as the current category, which is as confusing as it sounds.I think you probably want to filter it by set.
Okay, I've got that in there now and I've gone through the whole page setup again. For a while the category URLS were trying to go to /attractions/attractions/historical-places for example, but changing the link in the category template to this fixed that.
Now when I click on a category, the URL 404's instead of showing nothing, which may or may not be progress. What else am I missing?
My revised list-detail page looks like this:
LIst of Categories
Listing
What's the URL that 404s, and what rewrite rule do you have in place for it?
The list of categories link 404s. This one:
Rewrite looks like:
So a URL like
/attractions/historical-places
doesn't match?That very URL will 404, yes.
Ok, so it's not getting as far as your Perch code and anything I can help with. You'll need to check your rewrite rules.
Okay. I'll be back when I get that sorted out in the hope that it magically solves all problems.
I ended up splitting it into multiple pages which resolved my issues.