Load all nodes from content type on front page without views I want to create a one-page website. What I hope to be able to do is load all the created pages from one content type under each other, prefably in a for each loop.

So in page.tpl.php it would be something like:

foreach($pages as $page){
    print $title;
    print render($page['content']);
}


This way I could also bind views/blocks to certain pieces of the page. The reason I'm looking for this kind of approach is to keep the website manageable.

The structure would be as follows:

home
about
 - slide one (view)
 - slide two (view)
 - slide three (view)
other page
 - slide one (view)
 - slide two (view)


So the mentioned slides are items from a different content type, loaded from a view. 

If someone can point me in the right direction, or if some pieces of the question need clearing up, please let me know.



If people are still interested in this, I will give my solution here:

$query = new EntityFieldQuery();
$query-&gt;entityCondition('entity_type', 'node')
  -&gt;propertyCondition('status', 1) /* Status to make sure it is published */
  -&gt;propertyCondition('type', array('page', 'webform')) /* get pages and webforms */
  -&gt;fieldOrderBy('field_volgorde', 'value', 'ASC') /* a custom field to set the order */
  -&gt;range(0, 9999); /* amount of pages to get */
$result = $query-&gt;execute();
$nodes = node_load_multiple(array_keys($result['node']));

foreach($nodes as $node): 
    // Do your code magic
endforeach;


Within the foreach, fields can be echoed by using the following code examples:

echo $node-&gt;title;
echo $node-&gt;body['und'][0]['value'];
// ['und'] = language undefined


If there are any questions, feel free to let me know.
I use the following code to retrieve all nodes of a type:

$type = 'example';
$query = db_select('node', 'n')
  -&gt;fields('n', array('nid'))
  -&gt;condition('type', $type)
  -&gt;condition('status', 1);
$nids = $query-&gt;execute()-&gt;fetchCol();
$nodes = node_load_multiple($nids);