Open oleole39 opened 1 year ago
For the notice, I have been working on this and should be ready to submit a PR later this month.
For the notice, I have been working on this and should be ready to submit a PR later this month.
PR #156 submitted, with a broder scope including the feature described here
Hello,
Currently WP-Polls works by letting the poll admin feeding each poll with manually entered text answers. My proposal is to implement an alternative feature - not changing anything to the current plugin's way of working which would remain the default one - that would enable the use of post type objects rather than text strings as answers.
For a basic random example, let's say I have a custom post type named
personalities
and I want to ask people to vote who they find the most inspiring among a selection:personalities
objects using a post picker in WP-Pollspersonalities
objects's fields should be used in the template, saytitle
andthumbnail
This is a basic example and that would allow more sophisticated use cases with multiple custom fields. I have actually already started working on this and would like to know whether @lesterchan (thanks for all the work on that plugin by the way) would find interest in merging such feature ?
The implementation roadmap I have in mind is:
pollq
andpolla
tables) so that for a given poll ID all answers can be fetched depending of the selected answers type (text
orobjects
) at poll creation's screen.polls-templates.php
a. voting form's body [objects] b. results body [user voted] [objects] c. results body [user not voted] [objects]b. or I look forward to implement a field picker
Best regards, oleole39