WordPress.org

Ready to get started?Download WordPress

Forums

how to add a comment for multiple posts at once? (3 posts)

  1. sohamcf
    Member
    Posted 2 years ago #

    how to add a comment for multiple posts at once? I have attachment pages for a post. I want that when an user post a comment on the attachment page, the comment should also be posted on the parents post page. i.e. inserting comments on attachment and its parent post to which the attachments are attached simultaneously.

  2. James Kirk
    Member
    Posted 2 years ago #

    Heya sohamcf,

    What exactly is an "attachment page"? Do you have a link where we can see this in action?

    Thanks.

    Cheers! :)

  3. sohamcf
    Member
    Posted 2 years ago #

    http://www.celefeeds.com/2012/06/27/jennifer-lopez-revealing-lot-low-cut-swimsuit-photos/jennifer-lopez-cleavage-in-swimsuit-4/

    This is an attachment page (image.php), i.e. the media is attached to a parent post (single.php) (http://www.celefeeds.com/2012/06/27/jennifer-lopez-revealing-lot-low-cut-swimsuit-photos/)

    In image.php I can refer to the parent post by "post->post_parent".
    I just want that comments in image.php should also be inserted under its parent post comments.

Topic Closed

This topic has been closed to new replies.

About this Topic