permalink_anchor
permalink_anchor ( $mode = 'id' )
Parameters:- (string) mode Optional. Permalink mode. Accepts 'title' or 'id'. Default 'id'.
Defined at: - Introduced in WordPress: 0.71
- Deprecated in WordPress: —
Description
Displays the permalink anchor for the current post.The permalink mode title will use the post title for the 'a' element 'id'
attribute. The id mode uses 'post-' with the post ID for the 'id' attribute.