Support » Plugins » WP-Polls – Cannot Add Different Polls To Posts

  • Hello,

    I am using WordPress 2.5.1 and WP-Polls, I love the plug-in the only problem I have is I cannot add a different poll to my posts. I have the code in there when I click on the little poll icon and I enter in the correct ID, but it displays the poll that I am running in the sidebar instead of the pollid I enter in. Any ideas?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Type [poll id="1"]

    I have, still nothing =/

    Uninstall WP-Polls and try to install it again.

    Still not working =(

    ok, kind of a solution,

    If I use the [poll id=”2″] command it displays the active poll, but if I use the HTML editor and put: <?php get_poll(2);?> it works. The only thing I am afraid of is my client not knowing how to do this.

    Did you use the HTML editor to put [poll id=”2″] by right you should.

    Yup, tried both “Visual” and “HTML”. Is there anywhere in the code of the plugin I can edit the button to enter in the PHP command line instead of [poll id=””] ??

    Weird, I just tested and it works fine for me. Are you able to reproduce this issue on a fresh copy of WP-Polls and WP 2.5.1?

    You can try editing polls-admin-js I think. After that you need to packed the JS using Dean Packer.

    I am assuming this is the code here:

    // Function: Insert Poll Quick Tag
    function insertPoll(where, myField) {
    	var poll_id = prompt(polls_admin_text_enter_poll_id);
    	while(isNaN(poll_id)) {
    		poll_id = prompt(polls_admin_text_enter_poll_id_again);
    	if (poll_id > 0) {
    		if(where == 'code') {
    			edInsertContent(myField, '[poll id="' + poll_id + '"]');
    		} else {
    			return '[poll id="' + poll_id + '"]';

    Would you be able to assist me here with entering in the PHP command?


    edInsertContent(myField, '<?php get_poll(' + poll_id + '); ?>');

    return '<?php get_poll(' + poll_id + '); ?>';

    Cool, I will try it out when I get home. You mentioned something about packing, where do I get this?

    After you edit it,

    Go to, paste the WHOLE file javascript code into the field.

    Checked “Base62 encode” and “Shrink variables” and then copy the output to polls-admin-js-packed.js overwriting the only line that is being there.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘WP-Polls – Cannot Add Different Polls To Posts’ is closed to new replies.