Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $post;
- $post->post_link = function() use ( $post ){
- return sprintf(
- '<a href="%s" title="%s">%s</a>',
- get_permalink( $post->ID ), $post->post_name, $post->post_title
- );
- };
- $postlink = $post->post_link;
- echo $postlink();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement