How to delete the permalink (landing pages) of image in the media library in Wordpress?
Create a new file called image.php in your theme.Insert the code below in your image.php file,
<?phpglobal $post;if ( $post && $post->post_parent ) {wp_redirect( esc_url( get_permalink( $post->post_parent ) ), 301 );exit;} else {wp_redirect( esc_url( home_url( '/' ) ), 301 );exit;}