Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I found that taxonomy did not appear on nodes, because PHP IFs were using "has_terms" instead of "terms". Just change that to make it work.
Comment | File | Size | Author |
---|---|---|---|
#3 | node.tpl_.php_.patch | 802 bytes | mlissner |
Comments
Comment #1
mlissner CreditAttribution: mlissner commentedHi, can you give me more information on how to fix this so I can fix it on my installation? I know a little php, but I'm not sure where to look for this kind of thing...
Comment #2
Senpai CreditAttribution: Senpai commentedIn the node.tpl.php file, the
print $has_terms
needs to be changed toprint $terms
Somebody wanna roll a simple patch for this one?
Comment #3
mlissner CreditAttribution: mlissner commentedExcellent fix. It worked like a charm. I've attempted to roll a patch and attach it here, but I can't say I've ever rolled one before so I'm not sure it's quite right. I followed some directions I found to make this using diff. Hopefully it will work.