WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] poll in sidebar (13 posts)

  1. csyasar
    Member
    Posted 6 months ago #

    hi all,
    i want to use yop poll in sidebar. i added this code in my theme's sidebar.php file:

    <?php
    [yop_poll id="2"]
    ?>

    it don't work this style. how it works directly in sidebar, index or header?

    thank you lot!

    http://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 6 months ago #

    Hi csyasar,

    To use the poll in the sidebar add

    <?php return_yop_poll('2'); ?> instead of

    <?php
    [yop_poll id="2"]
    ?>

    to your sidebar.php file.

    Regards,

    YOP Team

  3. csyasar
    Member
    Posted 6 months ago #

    i tried it. error message:
    Parse error: syntax error, unexpected 'id' (T_STRING), expecting ']' in C:\wamp\www\ss3\wp-content\themes\ss3_2013\sidebar-sag.php on line 9 - See more at: http://localhost/ss3/#sthash.fbcmmGOo.2Jvb3oRS.dpuf

  4. YOP
    Member
    Plugin Author

    Posted 6 months ago #

    Hey csyasar,

    You have to replace

    <?php
    [yop_poll id="2"]
    ?>

    with

    <?php return_yop_poll('2'); ?>

    Please try again and let us know if you need more help.

    Best wishes,

    YOP Team

  5. csyasar
    Member
    Posted 6 months ago #

    i'm sorry. don't work. error message:

    Parse error: syntax error, unexpected 'id' (T_STRING), expecting ']' in C:\wamp\www\ss3\wp-content\themes\ss3_2013\sidebar-sag.php on line 7 - See more at: http://localhost/ss3/#sthash.fbcmmGOo.voOQmtxv.dpuf

  6. YOP
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    Please send us an email at yop.office{@]gmail.com with your sidebar-sag.php file so we can make the necessary changes.

    Regards,

    YOP Team

  7. csyasar
    Member
    Posted 6 months ago #

    i sent it

  8. YOP
    Member
    Plugin Author

    Posted 6 months ago #

    Hey csyasar,

    Please check your inbox.
    We have sent the modified file. You received that error because you used both

    <?php return_yop_poll('2'); ?>

    and

    <?php
    [yop_poll id="2"]
    ?>

    Best wishes,

    YOP Team

  9. csyasar
    Member
    Posted 6 months ago #

    it's work, but don't work correctly. vote button or total votes button don't work.

  10. csyasar
    Member
    Posted 6 months ago #

    i am waiting for help... my problem is not solved.

  11. YOP
    Member
    Plugin Author

    Posted 6 months ago #

    Hey csyasar,

    Please send us a link to your site so we may assist (the site has to be live).

    Regards,

    YOP Team

  12. csyasar
    Member
    Posted 6 months ago #

    my site is on localhost.

  13. YOP
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    Deactivate the plugin and after uninstalling it delete all the files then install it again.

    Please let us know if you need more help.

    Best wishes,

    YOP Team

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.