I need to display a CCK field from a node in a block

here is my code:

<?php if ( arg(0) == 'node' && is_numeric(arg(1)) && ! arg(2) ) {
  $node = node_load(arg(1)); ?>
  <div class="fast-facts">
  <h3 class="field-label">Fast Facts</h3>
  <div class="field-items">
    <ul>
    <?php foreach ((array)$node->field_fast_facts as $item) { ?>
      <li><?php print $item['view'] ?></li>
    <?php } ?>
    </ul>
  </div>
</div>
<?php } ?>

but it displays only formatting: li and ul

any advice?

thanks

Comments

nevets’s picture

Try temporarily replacing print $item['view'] with print print_r($item['view'], TRUE) and see what you get.