Re: How do I print a custom field?

Joined: 04/25/2008
Juice: 57

eroxors:

From the var_dump, you'll see something like this:

[field_authors] => Array
(
[0] => Array
(
[value] => "Dr. Seuss"
)
)

Which means to print, you'll have to access the file like this:

$node->field_authors[0]['value'];

The product number (SKU) is stored in $node->model

Nifty Products Tutorial Part 1 By: mykz- (132 replies) Wed, 03/19/2008 - 19:04