By jojototh on
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
Try temporarily replacing
Try temporarily replacing
print $item['view']withprint print_r($item['view'], TRUE)and see what you get.