Is there a way to suppress the output of nodes on taxonomy pages, without having to install a module (i.e. just in template.php)?
Nodes tagged with a taxonomy term appear on the "Taxonomy Index page" (e.g. yoursite.com/taxonomy/term/[id]).
New in Drupal 7, Taxonomy Index pages can have fields attached to them. However, if you try to over ride the taxonomy page with a View (for example, to control how the nodes are displayed), the fields on the Taxonomy Index pages will not appear.
I have therefore placed my Taxonomy View as block on the Taxonomy Index page. That way, I can control how the nodes appear and still have the Taxonomy Index page fields.
Because of this, the taxonomy page is still outputting its nodes. I can hide them by setting the teaser of the nodes to hidden, but it still loads up the nodes (and therefore any CSS/Jquery attached to nodes even though the nodes aren't being displayed). How can I suppress the nodes from appearing, ideally from inside of template.php?