WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on theme where I am adding vote functionality to comments and posts. What should I use, meta tables or create a new table?

share|improve this question
That depends on your anti-vote fraud mechanism. – toscho May 11 '13 at 11:38
Thanks, that helped me a lot. Using a table can prevent fraud voting by filtering IP and users. – Noor Ahmad Feroozi May 11 '13 at 12:44

You can use both:

  1. Comment meta for the plain vote count, because that is easy to fetch with a standard query.
  2. A custom table storing additional data to prevent vote fraud and other issues. These tables might be used for rare events (voting) only, but they are not used to list comments in the back-end or in views where voting is not possible anyway.

So plan performance bottle-necks first, profile, then decide what setup works best for you.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.