Taxonomy listing, theming parent-child..

Discussion in 'Drupal' started by dennisb, Aug 30, 2010.

  1. #1
    Hi guys,

    Just wondering of someone could help me with this. I would like to display my taxonomy on nodes. This can be done by using the following code:
    <?php if ($terms): ?>
            <div class="taxonomy"><?php print t('Tags: ') . $terms; ?></div>
          <?php endif; ?>
    PHP:
    How ever I want to display the parent of the term at top, beneath the title. And the child terms on the bottom as regular tags. I tried for the parrent tag the following code:

    <?php if ($parrents): ?>
            <div class="category"><?php print t('Posted in ') . $parrents; ?></div>
          <?php endif; ?>
    PHP:
    How ever this end up showing nothing, anyone got any idea?

    If my problem isnt explained well enough please ask what you want to know.

    Thanks!

    Greets,

    Dennis
     
    dennisb, Aug 30, 2010 IP