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

  1. yzqiang
    Posted 2 years 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.


  2. yzqiang
    Posted 2 years 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
    Plugin Author

    Posted 2 years ago #

    Hi yzqiang,

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


    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.