Render a single field value from drupal 7

<?php print render(field_view_field('node', $node, 'custom_field_name')); ?>

1 Response

I'm starting to hate Drupal less.

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.