I have a custom post type with a custom taxonomy. I don't link to the taxonomy on the page but from the admin anyone can visit the taxonomy/term url and the unstyled list page will be visible. How can I force wp to not use the default layout (index.php) for that listing? What's the best method? For example I creat a taxonomy template and I redirect it to the front page?
If you just want to "turn off" the public facing part of a taxonomy (eg. just use it for grouping), you can do that when you register it.
Just set the
You can also disable pretty permalinks by setting the
If you do need to allow logged in users to view the taxonomy pages (can't tell from the question), that's different story.
Check out the Template Hierarchy. If your custom taxonomy is called
(See the Codex page for