For a node listing on a taxonomy term page, like:
taxonomy/term/4
It's currently using the node template I set up just for when you are looking at a node:
node--spot.tpl.php
I added this code to hook_preprocess_node:
if(arg(0) == 'taxonomy') {
array_push($vars['theme_hook_suggestions'], 'node_taxonomy');
}
The node template file name I want to use is:
node-taxonomy.tpl.php
I confirmed the hook is running but it's still using:
node--spot.tpl.php
What am I doing wrong?
Update 1: According to the source code theme_hook_suggestions are listed in reverse priority order, so I changed array_unshift to array_push.
Update 2: I am correctly seeing in Devel themer that my template should be used first, even when it isn't:
node_taxonomy < node_14 < node_spot < sites/all/themes/hotness/templates/node--spot.tpl.php