title: Permalink redirects to localserver
body: <p>I used permalink to redirect to a post page when a post is clicked. It works fine on local server. But even after hosting to the main server, it gets redirected to the local server page when clicked. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;div class="blog-post_item"&gt;
      &lt;h4 class="text-center"&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h4&gt;
  </code></pre>
  
  <p>Please help</p>