title: Wordpress get_permalink($this->get_pageid()) showing wrong url
body: <p>I am using <code>get_permalink($this-&gt;get_pageid())</code> for getting page url.  </p>
  
  <p>my permalink is enables as sample-post. It should be <code>example.com/forum</code> but it is showing <code>example.com/login</code></p>