Working on a clients drupal 7 site, I have a content type that is promoted to the front page. The content type has a list field, I want to use the value of that field to add a class to the wrapper div on the node teasers populated to the front page. For example the html output would be something like this:
<div class="field_value"> content </div>
I'd prefer not to have to use a view or nodequeue to do this as it's easier on the client administering their site to simply promote items to front page.
I've been trying to add the class in the node.tpl.php file but for some reason I just can't get it to work. I've tried creating a preprocess variable in the template.php file but all I get in the output is: div class="Array".
Does anyone have any ideas on why I'm just getting the word "Array" output? or any ideas on how to solve my problem?