Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm working on an unique feature, that requires that I add usernames to specific post.

In detail, user clicks button and if he is logged in his wp username is saved somewhere together with the post. User can click and remove himself from the list. There can be many users under single post like 200+.

I believe I have two options:

  • 1) Create meta_key value pair and use 1 per user.

  • 2) Create 1 meta_key with array value that contains all users.

  • 3) I was thinking to maybe use comments system, as for that specific post_type I don't have comments at all. So I could just attach myself to that system, and instead of saving all comment data I would just store the username.

What do you think? Is there a better way?

share|improve this question
    
Please don't use a tag like php. It's about user meta data, so it should be tagged like this. And also take care about upper/lower case letters (proper english - at least this isn't chat) and proper formatting (for e.g. code stuff). You already got 14 questions and should know how things work. If not, please take some time to read the FAQ. Last but not least: Follow up with your old answers! People take time to answer your Qs, so take the same amount of time, they invested for your for free and follow up! –  kaiser Jul 29 '12 at 12:54

1 Answer 1

Decided going to use comments system to implement this feature.

share|improve this answer
2  
This answer was flagged by the system/community user as "low quality". This happens to all one liners, as they won't help later users. Please take your time to describe what exactly you've done to solve the question. Thanks. –  kaiser Jul 29 '12 at 12:49
    
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. –  Brian Fegter Aug 27 '12 at 20:15

Your Answer

 
discard

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.