Hi,

We have our taxonomy terms showing under our node title in the format:

Posted March 19th, 2007 by test.user in politics, national, USA, sports, business
refer: http://www.kiwime.co.nz

This works fine when viewing the published node, however when you preview the node before publishing the $terms do not show up - you get:

Posted March 19th, 2007 by test.user in , , , , ,

I have used:

      foreach($node->taxonomy as $tid => $taxo)
      $taxo_links[] = l($taxo->name,'taxonomy/term/'.$taxo->tid, array('title' => $taxo->name));
       print implode(', ',$taxo_links);

to print out the terms and commas in between.

This also happens when using print $terms in nearly all themes but you don't usually notice because the terms are listed after the content so isn't obvious when they don't show.

Any help would be appreciated

Andrea

Comments

clarif’s picture

I am facing the same issue. Any help and idea will be really appreaciated :-)

Thanks,
Fabrice.

CeRBeR_666’s picture

Thanks andreavr very easy trick

new_B’s picture

I'm having the same issue as well. (We're using Drupal 5.10).

According to CeRBeR_666, it seems that the problem is solved. Is there something that I'm missing?

Thanks.