WordPress.org

Forums

WP-Polls
show all poll questions in single page with paging (2 posts)

  1. Harish Madaan
    Member
    Posted 2 years ago #

    Hello Sir,

    I wants that my all poll questions should add automatically on a single page in site with paging feature, how can i able to do this, kindly help.

    Thanks
    Harish Madaan

    http://wordpress.org/extend/plugins/wp-polls/

  2. jonatascd
    Member
    Posted 2 years ago #

    Hi!

    here is the solution I've got:

    <?php
    global $wpdb;
    $rez = $wpdb->get_results("SELECT pollq_id FROM $wpdb->pollsq ORDER BY pollq_id DESC");
    foreach($rez as $poll) {
            get_poll($poll->pollq_id);
            echo "<br /><br /><hr />";
    }
    ?>

    cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic