i have two separate contents in two different content type. The other one is in the basic page, other one is in the content type i made(regional malls). The taxonomy terms or tags is showing in basic page when i publish but my problem is in the regional malls content, when i published, taxonomy terms or tags does not show up, any ideas why is this happening?or advise how to overcome this?

1 Answer 1


Create separate .tpl for content types and then put the code to print taxonomy term

<?php if($node->field_category): ?>
<div class = "top_tag">
  <?php print $node->field_category['und'][0]['taxonomy_term']->name;?>
<?php endif;?>

put this code in template.tpl.php

function mytheme_preprocess_page(&$vars) { // replace mytheme with your theme name
  if (isset($vars['node']->type)) {
    $vars['theme_hook_suggestions'][] = 'page__' . $vars['node']->type;

hope it helps you!

  • how can i create this?can u teach me ho to do this? im only beeginner..
    – user13777
    Feb 17, 2013 at 7:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.