Render content field (render value with markup)


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php print render($content['fieldname']); ?>
  2.  
  3. <?php print render($content['comments']); ?>
  4.  
  5.  
  6. <?php if (!empty($content['fieldname'])): ?>
  7. <?php print render($content['fieldname']); ?>
  8. <?php endif; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.