title: Force links to open in ORIGINAL window wordpress
body: <p>I have a WordPress niche website with lots of posts that ALL of the links in the posts (internal+external) are hard-coded to open in new window (<code>target=_blank</code>) . I decided I want to change this so only external links will open in new window, and internal links will open in the same original window (automatically, by script, not hard-coded).</p>
  
  <p>I installed a plugin that does that automatically (this one: <a href="https://wordpress.org/plugins/open-external-links-in-a-new-window/" rel="nofollow noreferrer">https://wordpress.org/plugins/open-external-links-in-a-new-window/</a>).</p>
  
  <p>It works great for new posts, but I also want all the previous posts' internal links to open in the same window (they still open in new window because of the hard coded <code>target=_blank</code>.)</p>
  
  <p>I followed the instructions on this post: <a href="http://www.mybloggertricks.com/2016/01/dont-open-internal-links-in-new-window.html" rel="nofollow noreferrer">http://www.mybloggertricks.com/2016/01/dont-open-internal-links-in-new-window.html</a>. That didn't work (I also deactivated the former plugin above. Didn't work).</p>
  
  <p>Other than that post, I didn't find any other post online talking about this topic.</p>
  
  <p><strong>To make it clear: my final result needs to be:</strong> all links in posts, including previous hard-coded <code>target=_blank</code> links, open external links in new window and internal link in same window.</p>
  
  <p>Thanks in advance for you help!</p>