I want to create a voting system in wordpress
. I know there are number of wordpress plugins for voting, and I can also code for voting without plugin using post_meta
that anyone can do right.
But here, I want something different. I have a star selection voting, that a star can appear in different categories. So star's votes should be counted on categories. I have no idea how I can set up db table, or utilize post_meta
for this.
To be clear here is the full scenario: I have a post type 'nominees', and custom taxonomy 'nomination_cat', terms like, best actor, best comedian, etc.
Each actor has their own profile, also I can assign an actor to multiple cats, like best actor, comedian.
On front end I am able to show the nominees under different cats, and each profile on font-end has a voting button, so voting should be calculated differently on each category. I think, you got the idea.
Is there a way to do this, preferably without plugin. Even just an idea will be appreciated.
NB: Actors ate stored in a CPT 'Nominees', so I have, Nominee ID (post_id) in wp_post table and 'term_id' in wp_terms table.
Only logged in voters are allowed to vote, so a voter can vote only once.