I'm using Drupal 7 with a custom content type called "lesson". In this custom content type I have a custom field named "field_lesson_objective". I'd like to be able to wrap this in a custom div, so I thought it would be pretty simple to open up my custom page template "page--lesson.tpl.php", remove "", and replace that with something that would display the field, but I'm having no luck finding a solution.

Perhaps I'm going about this all wrong.

1 Answer 1


Ok, figured this out. I copied node.tpl.php to my templates directory in my theme, and then duplicated that with the name of of custom content type:


I was then able to display my custom field with this:

   echo render($content['field_lesson_objective']);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.