Setting default media attachment settings in WordPress

April 26, 2013

If you are building WordPress sites for clients and want to make sure that, whenever they add images into post or page content, the images are not wrapped in links and are of a certain size, then this is for you.

WordPress has a hidden options page which allows you to directly edit the options data. Navigate to Then search for and edit the following options:

  • image_default_align – to change the alignment default: none, left, right, center
  • image_default_link_type – to change the linking default: file, custom, post, none
  • image_default_size – to change the size default: thumbnail, medium, large, full

About Iain

I am a WordPress and PHP developer building my own plugins and working with Delicious Brains. I like to blog about things, especially WordPress.