Support » Plugin: WP-Polls » Integrate polls into comments

  • Resolved aristidebrian


    Hello there,

    Fist of all, thank you. WP-Polls is a fantastic plugin.
    I’ve been using it for a while and I was wondering if it was possible to integrate polls into comments? Then the user could fill his name, adress, the poll and then use the “Submit button” to validate its choices.

    any reply, links, tutorial most welcomed…

    looking forward to reading you

Viewing 6 replies - 1 through 6 (of 6 total)
  • In poll theres log- make people to register.
    Or as opinion poll or google docs forms.

    There is actually a way to do this: `<?php
    global $wpdb;
    $rez = $wpdb->get_results(“SELECT pollq_id FROM $wpdb->pollsq ORDER BY pollq_id DESC”);
    foreach($rez as $poll) {

    echo “<br /><br /><hr />”;


    Just add: comments_template(”,true); after echo of the code you have in your template file or whereever.

    Thank you all for your reply.

    155actionplan, your code worked fine!

    I mark the topic as resolved as other members could be interested by the answer.

    Glad I could help!

    I know this is a old topic, but I need to ask where the code is located. I am not so good with the codes. Shall I add the comments_template(”,true); in the plugin editor or in my theme php file?

    It depends on where you need it added. It could be page.php or another page template on the site. Where you add that code, it’s goin to tell the platform you want to add a comment function. You can hit me up via [ redacted, support is offered via the forums and not e-mail ]

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Integrate polls into comments’ is closed to new replies.