Ask your WordPress questions! Pay money and get answers fast! (more info)

Mimic the attachment comment function

  • REFUNDED

Hi,
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?

// Jens.

Answers (3)

2015-04-25

Hariprasad answers:

Hello Jens,

Are you using default WordPress comment system?

Let me know.

Regards,
Hariprasad


Jens Filipsson comments:

Hi Hari,
yes, at least that's what I planned to do. I think that should be the best way to do it, right?

// Jens.


Hariprasad comments:

Do you need the vote up/down option?


Jens Filipsson comments:

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?


Hariprasad comments:

okay.

Working on it.

2015-04-25

Romel Apuya answers:

Hi,

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.

cheers,

Romel

2015-04-25

Arnav Joy answers:

Hello Jens ,

is it done ?


Jens Filipsson comments:

Hey Arnav,
I thought it was done, but it seems the developer making it all of a sudden can't be contacted. So no, it's not done. :)