Skip to main content
11 events
when toggle format what by license comment
Aug 1, 2019 at 14:26 comment added Loosie94 Hi Sally, this did the trick! I also didn't see it... Again, thanks a 1000 times!
Aug 1, 2019 at 13:47 comment added Sally CJ Check the "UPDATE" part in the answer.
Aug 1, 2019 at 13:43 history edited Sally CJ CC BY-SA 4.0
added 976 characters in body
Aug 1, 2019 at 12:32 comment added Loosie94 Yes, the template is called template-school.php. The schools are 2 pages with the same name as the category taxonomy. So the taxonomy names are the same as the page names.
Aug 1, 2019 at 2:29 comment added Sally CJ Ok, so I suppose the template-school.php is a custom Page template? (means you've got something like Template Name: My Template in the template) And on what Page are you using that template?
Jul 31, 2019 at 20:12 comment added Loosie94 This is the default category taxonomy, renamed (labels only) to school(s). I register this in the custom post types with: register_taxonomy_for_object_type('category', 'agenda');
Jul 30, 2019 at 21:57 comment added Sally CJ Do you actually have a custom taxonomy with the slug school? Can you show the code that you use to register the taxonomy?
Jul 30, 2019 at 14:20 comment added Loosie94 It seems that the school name (set by %school%) now redirects to the index.php. It ignores my template (template-school.php) and also the page.php. Any idea why this happens?
Jul 30, 2019 at 7:15 comment added Loosie94 Hi Sally, this works great, thanks! Didn't know I had to add the rewrite rule for this. But your explanation makes sense :) Thanks again!
Jul 30, 2019 at 7:14 vote accept Loosie94
Jul 26, 2019 at 14:39 history answered Sally CJ CC BY-SA 4.0