-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: dynamic poll #153
Comments
After some research, I believe there is no relation between a poll and a post. So I don't think this is possible. Please correct me if I'm wrong. So, I created a script which will check if there is a poll id attached to the post. If not, it will check if there is a poll with the same title. If not, it will create a poll and attach it to the post meta. Please see this template script, maybe it could help someone:
|
I would like to display a poll for each of my posts. Example poll would look like something like this:
What rating would you give
POST TITLE
?My question is: (how) can I create one poll and use it for multiple posts?
If this is not possible, how can I create a poll dynamically? Something like; 'if no poll for this post exist, create one, save the id in the post meta'.
Thank you in advance!
The text was updated successfully, but these errors were encountered: