title: Wordpress - Can't open anchor in IE and Safari but works fine in Chrome
body: <pre><code>   &lt;?php
          $args = array( 'numberposts' =&gt; '2' );
          $recent_posts = wp_get_recent_posts( $args );
          foreach( $recent_posts as $recent ){
  
  
              $desc = $recent["post_content"];
              $dessWithoutImg = preg_replace("/&lt;img[^&gt;]+\&gt;/i", "", $desc);
              $withoutLinks = preg_replace('/&lt;\/?a[^&gt;]*&gt;/','', $dessWithoutImg);
              $desc = mb_strimwidth($withoutLinks, 0, 200, '...');
  
              echo $recent["ID"];
  
              echo '
              &lt;div class="column small-12 medium-6 margin-bottom-xsmall post-panel"&gt;
                  &lt;div class="panel-tan"&gt;
                      &lt;a href="' . get_permalink($recent["ID"]) . '"&gt;
                          &lt;h5&gt;' . $recent["post_title"] . '&lt;/h5&gt;
                      &lt;/a&gt;'
                      . $desc .
                  '&lt;/div&gt;
              &lt;/div&gt;';
          }
          wp_reset_query();
      ?&gt;
  </code></pre>
  
  <p>Link
  <a href="http://b20.2c7.mwp.accessdomain.com" rel="nofollow noreferrer">http://b20.2c7.mwp.accessdomain.com</a></p>
  
  <p>The above link there is some recent posts at the bottom of the page if you click these pages in Chrome then it takes you to the page however if you click on one of these posts in Safari or IE Yet to check FF. It opens to a file not found. </p>
  
  <p>I thought that the point of Get-permalink was to return what permalink is being used and in this instance it is returning the ID. Is there a way to modify my code so it outputs the post name. </p>
  
  <p><strong>More information</strong>
  My Permalink settings are set to post name. </p>
  
  <p>Has anyone come across this oddity before?</p>