This page redirects to an external site: https://developer.wordpress.org/reference/functions/post_permalink/
Languages: English • 日本語 (Add your language)
Returns the permalink for a post with a custom post type.
<code style="color: #000000"> <span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #0000BB">post_permalink</span><span style="color: #007700">( </span><span style="color: #0000BB">$ID </span><span style="color: #007700">); </span><span style="color: #0000BB">?></span> </code>
Echos the permalink url for the ID passed in
post_permalink() is located in wp-includes/link-template.php.
get_permalink(), the_permalink(), post_permalink(), permalink_anchor(), permalink_single_rss()