title: How to remove part of a url?
body: <p>Trying to turn this:</p>
  
  <pre><code>href="/wp-content/themes/tray/img/celebrity_photos/photo.jpg"
  </code></pre>
  
  <p>into:</p>
  
  <pre><code>href="/img/celebrity_photos/photo.jpg"
  </code></pre>
  
  <p>So I'm simply trying to <em>remove</em> <code>/wp-content/themes/tray/</code> from the url.</p>
  
  <p>Here's the plug in's PHP code that builds a variable for each anchor path:</p>
  
  <pre><code>$this-&gt;imageURL = '/' . $this-&gt;path . '/' . $this-&gt;filename;
  </code></pre>
  
  <p>So I'd like to say:</p>
  
  <pre><code>$this-&gt;imageURL = '/' . $this-&gt;path -/wp-content/themes/tray/ . '/' . $this-&gt;filename;
  </code></pre>
  
  <p>PHP <code>substr()</code>? <code>strpos()</code>?</p>