I have a custom tpl file for a custom node.
I need to hide some fields, but its not working
below is my code
hide($content['field1']); hide($content['field2']); print render($content);
After printing $content, field1 and field2 still shows.
what could I be doing wrong?
I got the solution
I had to hide($content), then hide($content['field1']), then render($content)