Node blog dislpay all content type blog in theme I have content type page with node called blog(page blog) and I want to display all content type blog in it(content of page blog). how can i do this in theme without using block or views.I'm try to do it by using this code:

&lt;?php 
$build = array();
$query = db_select('node', 'n')-&gt;extend('PagerDefault');
$nids = $query
    -&gt;fields('n', array('nid', 'sticky', 'created'))
    -&gt;condition('type', 'blog')
    -&gt;condition('status', 1)
    -&gt;orderBy('sticky', 'DESC')
    -&gt;orderBy('created', 'DESC')
    -&gt;limit(3)
    -&gt;addTag('node_access')
    -&gt;execute()
    -&gt;fetchCol();

if (!empty($nids)) {
    $nodes = node_load_multiple($nids);
    $build += node_view_multiple($nodes,'full');
    $build['pager'] = array(
        '#theme' =&gt; 'pager',
        '#weight' =&gt; 5,
    );
}
else {
    drupal_set_message(t('No blog entries have been created.'));
}

    print render($build);
  ?&gt;


and set it in body field for page blog. And when display blog page it's content nothing (or empty page!). I'm test my code and execute it in php code it work and print all blog that I have.
Any way to do this in Drupal theme?
if I understand correctly you'll need this query:

$query = new EntityFieldQuery;
$query-&gt;entityCondition('entity_type', 'node')
  -&gt;entityCondition('bundle', 'blog')
  -&gt;propertyCondition('status', 1);

$result = $query-&gt;execute();


then do you foreach($result);