When I use
get_the_permalink in a draft or scheduled post, the URL provided is not the "final" permalink—it is the unpretty
How can I get the final, "clean" permalink to show up in a draft or scheduled post?
I could do something involving
$post->post_name, but I'd need the path as well, and that varies from post type to post type and depends on permalink structure. Is there a "universal" way to do this?