Polstir

Description

Embed polls created with Polstir using the shortcode [polstir].

Demo

View a demo of an embedded poll. View the full poll page for comparison.

Usage

Embed a poll using the shortcode [polstir] and the poll id. For example, to embed a poll with the url https://pol.st/howdesign/dL5nQw9Ts729oPqaj use the shortcode [polstir id="dL5nQw9Ts729oPqaj"]

To customize the appearance of the embedded poll, additional options can be set in the shortcode. The full list of shortcode defaults is as follows:

[polstir id="wordpress-embed" image="1" question="1" comments="1" theme="light" style="normal"]

The following poll sections can be hidden by setting them to “0”:

  • image 1, 0 (defaults to 1)
  • question 1, 0 (defaults to 1)
  • comments 1, 0 (defaults to 1)

Theme and style options can also be set:

  • theme light, dark (defaults to light)
  • style normal, compact (defaults to normal)

Screenshots

  • Publishing a post with a poll shortcode
  • Sample embedded poll with comments

Changelog

1.0

  • Enable shortcode embedding

1.1

  • Updated embed script and documentation

1.2

  • Updated screenshots and static assets

1.5

  • Updated security and readme

2.0

  • Added advanced embed features (theme, style, and display options)

3.0

  • Switch to new pol.st domain

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code