How to display both the taxonomy parent and child in a node?
The answer you linked is correct. You need to write .tpl.php file and use provided code in place of default taxonomy renderer. In Drupal nodes belongs only to explicitly selected taxonomy element, not to it's parents. It was the design decision.