/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $view = views_get_view('reviews_front'); $view->render(); foreach ($view->result as $result) { $node = node_load($result->nid); $images[] = $node->field_image[0]['view']; $teasers[] = node_teaser($node->body); } echo '<div>'; foreach ($images as $img) { echo $img; } echo '</div>'; //same way for teasers ... ?>
Comments
