title: How to change the attachment url in Wordpress
body: <p>What I'm trying to do is change the link to the main attachment page in Wordpress. Basically, I'm trying to change the word attachment to media.</p>
  
  <p>I'm trying to change:</p>
  
  <p>example.com/parent-category/child-category/post-slug/attachment/attachment-name/</p>
  
  <p>to:</p>
  
  <p>example.com/parent-category/child-category/post-slug/media/attachment-name/</p>
  
  <p>Thanks in advance for any help on this.</p>