Custom Taxonomy – Number Terms go to "Not Found" Page
-
Hi! I haven’t been able to find any answers to this problem on other forums, so here goes:
I’ve added half a dozen Custom Taxonomies to my site, all of which are working fine with the exception of one. It’s a film review site, so the Taxonomies are things like “Director,” “Producer,” “Writers,” “Country of Origin,” and so on. I used the same register_taxonomy function for each of these, which worked perfectly. However, the one Custom Taxonomy that is not working is the one for “Years.” I used the_terms functions to display the terms on each review page, so the visitor can click, e.g. “Japan” and see a list of all films using the term “Japan” within the “Country of Origin” taxonomy. However, when the visitor clicks a term within “Years” – e.g., 2010 – it goes to a “Not Found” page.
Logically, the issue seems to be that all the other taxonomies use terms that are letter-based, and therefore strings. But all the terms added to the “Years” custom taxonomy are numbers, and, I’m assuming, therefore integers, which might be what’s causing them not to work.
I am unsure as to how to fix this – I feel the solution might require somehow telling WordPress to interpret the “Years” terms as strings, and not as integers. But I don’t know whether it’s a change that needs to be made with my register_taxonomy function, my the_terms function, or something else entirely. Any help would be much appreciated!
David
- The topic ‘Custom Taxonomy – Number Terms go to "Not Found" Page’ is closed to new replies.