How To Set Default Attachment Display Settings In WordPress

Whenever you insert an image from the WordPress’ media uploader, it allows you to set the attachment display settings in the right side of the pop-up modal. You always have to customize the display settings and it wastes a lot of time. has a great code to set default attachment display settings by using your theme’s functions.php file. Add following snippet to your theme’s functions.php file:

Here are the options for each:


  • left
  • right
  • center
  • none


  • file
  • post
  • custom
  • none


  • thumbnail
  • medium
  • large
  • full