Get_permalink returning wrong URL
-
I am using the pretty permalinks with WordPress. I have put “/blog/&postname%” under “Custom structure” in the Permalinks submenu.
I can indeed access the page using “https://www.mysite.com/blog/lorem-ipsum” but everytime I get the permalink inside a post (in my custom template using get_permalink), it returns it as follow: “https://www.mysite.com/?post=lorem-ipsum”.
Is there a way to get the pretty URL and not the default “?post=” URL? Both are working but I only want the pretty URL to show in my links.
I can’t find anything about this…
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get_permalink returning wrong URL’ is closed to new replies.