Thanks for you quick reply
I have done this functionality by adding a function to my functions.php.
I know it may not be robust solution but it can save someone time, below is the function code
public youfunction ($args=array()){
// display polls forcefully as poll archive page not allow voting
global $wpdb;
$output = "";
extract($args,EXTR_OVERWRITE);
$offset = isset($offset) && is_numeric($offset) ? $offset : 0;
if (function_exists('vote_poll') && !in_pollarchive()):;
$polls_perpage = intval(get_option('poll_archive_perpage'));
$polls_type = intval(get_option('poll_archive_displaypoll'));
$polls_type_sql = '';
// Determine What Type Of Polls To Show
switch($polls_type) {
case 1:
$polls_type_sql = 'AND pollq_active = 0';
break;
case 2:
$polls_type_sql = 'AND pollq_active = 1';
break;
case 3:
$polls_type_sql = 'AND pollq_active IN (0,1)';
break;
}
$post__not_in = isset($post__not_in) && !empty($post__not_in) ? 'AND pollq_id NOT IN('.$post__not_in.')' : '';
$total_polls = $wpdb->get_var("SELECT COUNT(pollq_id) FROM $wpdb->pollsq WHERE 1 $polls_type_sql AND pollq_active != -1");
$questions = $wpdb->get_results("SELECT pollq_id FROM $wpdb->pollsq WHERE 1 $polls_type_sql $post__not_in ORDER BY pollq_id DESC LIMIT $offset, $polls_perpage");
if($questions) {
foreach($questions as $question) {
ob_start();
get_poll($question->pollq_id);
$output .= ob_get_contents();
ob_end_clean();
}
if($total_polls > $polls_perpage):
// ajax load more button
endif;
}else{
// NO POLL FOUND
}
endif;
return $output;
}
You can adjust this function according to your own requirement
of-course i have extract this code from plugin and re arrange it.
Thanks.