I would like to mimic the function that let's the user comment on images from within the post, as seen in [[LINK href="http://www.boredpanda.com/crazy-photographers/"]]this article[[/LINK]].
From what I understand, this is what they do (and this is also what I need help doing):
- Fetch the comments from the attachment page of the attachment in question. Only display the first comment, show the other ones on demand with ajax.
- Display a comment field linked to the attachment, and publish the comments with ajax.
- Limit the number of characters allowed.
- Allow threaded comments.
- Users must be logged in to post a comment.
All comments are saved to the attachment page of the attachment in question, but I can't figure out how they do this.
Could anyone help me?
Are you using default WordPress comment system?
Let me know.
yes, at least that's what I planned to do. I think that should be the best way to do it, right?
Do you need the vote up/down option?
It's not needed, but it would be a nice addition, that's for sure. But on a really large site, could this be bad for the loading times?
Working on it.
A good way to do this is via [[LINK href="http://www.advancedcustomfields.com/"]]ACF[[/LINK]], you create a field group with image and comment but unfortunately the comment form is not yet built in. Eliot the author of the plugin says they will be releasing soon the comment field in ACF5. On the current version comment system can still be achieved with custom coding which you allow access the the comment field in the front end.
I think thats the best so far i could think of.