WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] In activity always show the last poll and width keeps 200px (3 posts)

  1. yzqiang
    Member
    Posted 9 months ago #

    I add the poll shortcode into a activity. the poll shows perfect. But if I create another poll and add another poll, but the new activity shows the first poll, not the right number poll.
    The problem doesn't happen in post, only in activity. I think it's weird because the shortcode function should be same in post and activity.
    In activity, the poll width keeps with 200px in the html code. I think it comes from the sidebar use. The plugin takes the poll as in sidebar, not activity.

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

  2. yzqiang
    Member
    Posted 9 months ago #

    I found the reason. Because when the activity is published, slashes are added. For example, when I add shortcode into activity:
    [yop_poll id="1"]
    BuddyPress add slash as:
    [yop_poll id=\"1\"]
    That's the reason why the shortcode error happens.

  3. YOP
    Member
    Plugin Author

    Posted 9 months ago #

    Hi yzqiang,

    When you add shortcode you could use [yop_poll id=1] instead of
    [yop_poll id="1"]

    Regards,

    YOP Team

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.