Oh, and I tried just linking to media file instead of attachment but I still get the carousel, and comments.
Hi there!
Try this:
add_filter( 'comments_open', 'filter_media_comment_status', 10 , 2 );
function filter_media_comment_status( $open, $post_id ) {
$post = get_post( $post_id );
if( $post->post_type == 'attachment' ) {
return false;
}
return $open;
}
Taken from here: http://www.wpbeginner.com/wp-tutorials/how-to-disable-comments-on-wordpress-media-attachments/
Thanks for sending me in the right direction. I couldn’t seem to google this properly. In the end I wound up unclicking ‘allow comments’. They did the same exact thing since I tried both.
(@colourpress)
10 years, 2 months ago
Having fun playing with Jetpack, love the tiled galleries and lightbox but client does NOT want commenting. Please, how do I turn this off?
http://wordpress.org/plugins/jetpack/