title: How to Replace the http:// from the current page url of wordpress?
body: <p>Hi I tried to  Replace the <code>http:// or https://</code> from the current url of wordpress site. I tried to replace the <code>http:// by str_replace</code>. I fetch the current url by <code>the_permalink();</code></p>
  
  <pre><code>&lt;?php echo str_replace(array('http://','https://'),'',the_permalink());?&gt;
  </code></pre>
  
  <p>that above code is not working but when i trying to get the url from admin input similar to this</p>
  
  <pre><code>&lt;?php echo str_replace(array('http://','https://'),'',get_option('URL'));?&gt;
  </code></pre>
  
  <p>That Get Option is working Perfect but for the permalink is not working why any suggestion would be great.</p>
  
  <p>Thanks,
  vicky</p>