I Created a poll with core module "Poll".
Can we get author of the poll and display in Most recent poll block?
I have using
block--poll--recent.tpl.php to theme the poll. I have tried by global user.
but how to get a poll of that user??
As every content type polls are node then you can get the creator by get node creator :)
$title:the title of poll
$node = node_load(array('title' => $title, 'type' => 'poll')); $userId=$node->uid;
not we have a userId of creator , maybe you need name or anything of it that you can get them by