the_shortlink
the_shortlink ( $text = '', $title = '', $before = '', $after = '' )
Parameters:- (string) text Optional The link text or HTML to be displayed. Defaults to 'This is the short link.'
- (string) title Optional The tooltip for the link. Must be sanitized. Defaults to the sanitized post title.
- (string) before Optional HTML to display before the link. Default empty.
- (string) after Optional HTML to display after the link. Default empty.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Displays the shortlink for a post.Must be called from inside "The Loop"
Call like the_shortlink( __( 'Shortlinkage FTW' ) )