Support » Themes and Templates » uploading media – remove auto link

  • Resolved noname1


    By default, adding an image to a post also adds a link to the it’s own file. I want to remove this, so no link is ever added.

    in wp-includes/media.php, if i change line 303:
    function wp_get_attachment_image_src($attachment_id, $size=’thumbnail’, $icon = false) {
    function wp_get_attachment_image_src( , $size=’thumbnail’, $icon = false) {
    will that do the trick?

Viewing 2 replies - 1 through 2 (of 2 total)
  • What was the solution for this?

    I would like to do the same.


    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Just click the “none” button to remove the link before you add the image to the post.

    2.7 will have an optional setting to make it default to this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘uploading media – remove auto link’ is closed to new replies.