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 Unused.
- (string) before Optional. HTML to display before the link. Default empty.
- (string) after Optional. HTML to display after the link. Default empty.
Defined at:Change Log: - 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' ) )