Howto print out the pagination for EntityFieldQueries? I have this code that uses an EntityFieldQuery object:

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

// […] switch case defaulting to:
$query-&gt;fieldOrderBy("field_bautyp", 'value', "asc");
// […]

$query-&gt;execute();
$nodes = node_load_multiple(array_keys($result['node']));
return theme('yacht_display', array('nodes' =&gt; $nodes));


And in the yacht_display.tpl.php

&lt;some HTML-Code and iteration over the $nodes&gt;
&lt;?php var_dump(theme_pager()); # =&gt; NULL ?&gt; 


It apparently works; when I add ?page=2,5 to the URL I get different results.
Now I need to render the pager. Simply calling theme_pager() does not work; calling theme('pager', array("element" =&gt; 1)) always returns NULL.

What am I doing wrong?

UPDATE: updated the code to its current state
The -&gt;initializePager() part is wrong; why would you do that?
Kill that line, and call execute() as usual.
Just calling theme('pager') should be enough; I am not sure why it fails. (Maybe because of the call to initializePager().)