[poll:] Short Tag
Built-in Feature
This short tag allows the display of the Poll Widget within the content of any post/article/page.
This tag will be rendered by the Polls Plugin renderer (if it is configured to do so).
Note:
[poll:] renders a widget "Poll Widget" (<div class="evo_widget widget widget_core_poll">...</div>) and cannot appear inside a paragraph. (b2evolution will automatically move it out of the paragraph).Syntax Breakdown
[poll: Poll ID [ : Custom Title ] [ : Custom Question ] ]
- Poll ID: ID of the poll to display.
- Custom Title: Optional title to use instead of the default title. Use a dash
-to prevent the display of the title. - Custom Question: Optional poll question to display instead of the question from DB. Use a dash
-to prevent the display of the poll question.
Samples
[poll:123]- Display a widget "Poll" with poll ID #123[poll:123:Panel Title]- Use custom panel title instead of default[poll:123:-]- No title and panel are displayed at all[poll:123:Panel Title:Question message?]- Custom title + Replace poll question from DB with custom question text[poll:123:Panel Title:-]- Custom title + Hide question[poll:123:-:-]- Hide title + Hide question