Rendering the Fivestar widget I am trying to render the Fivestrar widget programmatically. I have tried the following code, without success:

$settings = array(
  'content_type' =&gt; 'parce',
  'content_id' =&gt; $nid,
  'stars' =&gt; 5,
  'autosubmit' =&gt; TRUE,
  'allow_clear' =&gt; FALSE,
  'required' =&gt; FALSE,
  'tag' =&gt; 'vote'
);

print drupal_render(drupal_get_form('fivestar_custom_widget', $field_rating['0'], $settings));


I do get the widget form to print, but on submission the votes don't register; plus in this way I do not have the vote summary.

Am I missing something?
Are you in a node template ? If so you can do:

print render($content['field_vote']); 


Source: Display fivestar in template (node--*.tpl.php)