I have a custom taxonomy/custom post category and I'm trying to write a function, which removes the sidebar from the archive pages, only when there's a (custom) taxonomy match. The match part isn't the issue, but I'm unable to silence WP's get_sidebar()
(triggered by arhive.php
). The best result I got, removed not only the sidebar, but also the footer and admin header menu... which is a bit too much.
Does anyone know how to disable arhive.php
's get_sidebar()
via functions.php
?