Disable comments on media

  • Unknown's avatar

    I have some media (images) inserted into a page. People are able to leave comments on the actual media file rather than the page on which it appears. I would like to be able to disable the ability to leave comments on the media, but still be able to leave comments on the page where the media appears. I also want to be able to move the comments already made on the media files to the comments for the page – so they are easily seen and are part of the discussion for that page.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    a) You’re not really talking about “the actual media file”, you’re talking about what WP calls an attachment page (a blog-like page with a larger version of a single image on it). Attachment pages adopt your default discussion setting, and you cannot change that. So the only way to have attachment pages with no comment form is to go to Settings>Discussion and disable commenting, create the post or page with the images, publish it, then edit it and enable commenting again (post/page editor > Discussion module > tick “Allow comments”, click Update; or Posts/Pages > All Posts/Pages > hover under post/page title, click Quick Edit > tick “Allow comments”, click Update). But this will work for future posts/pages only, of course, not already published ones.

    Easier alternative: make the images link to the original file instead of the attachment page. See here:
    http://wpbtips.wordpress.com/2009/04/26/images-the-three-link-options/

    b) Moving comments can’t be done automatically. You need to copy the comments and the commenter’s data (name, website URL, email), log out, submit the comments as your own, then log back in, go to Comments in your dashboard sidebar and edit the new comments to restore original date/time and commenters’ data.

  • The topic ‘Disable comments on media’ is closed to new replies.