Gravity Forms Polls Top Picks
Gravity Forms is an awesome Wordpress plugin. Using the polls extension allows for more interaction with users. I wanted to a way to grab (in order) the top (5,10,etc.) results from the poll without looking at all the poll results.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/royboy789/gravity-forms-poll-top-picks/archive/refs/heads/master.zipGravity Forms is an awesome Wordpress plugin. Using the polls extension allows for more interaction with users. I wanted to a way to grab (in order) the top (5,10,etc.) results from the poll without looking at all the poll results.
This is my first Git/Github project.
I want to eventually turn this into something Gravity Forms can use for their own, as it is a good way to poll in larger user groups.
To Install:
- Download / Pull gravity-forms-top-picks.php
- Use WP backend to install plugin
To Use:
Shortcode [gftop]
Attributes:
total- how many do you want to show?formid- which form do you want to use (mus be a poll)?poll_input- which poll input do you want to get the top X of? First poll input defaults as 1
Example:
[gftop total="5" poll_input="2" formid="2"] - will pull the top 5 results from the second poll input in form 2