Description
Display a link to a post
Usage
oiksp_post_link( $link );Parameters
- $link
- ( ID/string ) optional – post_ID OR the actual link If the $link is an integer then we format the link ourselves otherwise just bung it out.
Returns
voidSource
File name: oik-squeeze/shortcodes/oik-squeeze.phpLines:
1 to 10 of 10
function oiksp_post_link( $link=null ) { if ( is_numeric( $link ) && ( $link != 0) ) { $url = get_permalink( $link ); $title = get_the_title( $link ); $link = retlink( null, $url, $title ); } if ( $link ) { e( $link ); } }View on GitHub
