permalink_anchor


permalink_anchor ( $mode = 'id' )

Parameters:
  • (string) $mode Optional. Permalink mode. Accepts 'title' or 'id'. Default 'id'.
Defined at:

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.

Related Functions

permalink_link, the_permalink_rss, permalink_single_rss, get_permalink, the_permalink

Top Google Results

User discussions

wpseek mobile