Codex tools: Log in
Languages: English • 日本語 • (Add your language)
Contents |
The get_post_permalink template tag retrieves the permalink for a post with a custom post type.
<?php get_post_permalink( $id, $leavename, $sample ); ?>
<?php get_post_permalink(); ?>
(string)
apply_filters() Calls 'post_type_link' hook
get_post_permalink() is located in wp-includes/link-template.php.
Edit Link: edit_post_link(), edit_comment_link(), edit_tag_link(), edit_bookmark_link()