get_the_permalink() not returning clean url
-
Hey i am trying to get the product url with the wordpress function of get_the_permalink() with the product page id.
It seems like instead of getting clean url like
website.com/my-page-name/
I get something like this
website.com/?p=229
So i get the url by ID and it make redirect to the normal url. Is there a way to pass that and get the correct URL with product id?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘get_the_permalink() not returning clean url’ is closed to new replies.