lib/Post.php
public function link() {
		if ( isset($this->_permalink) ) {
			return $this->_permalink;
		}
		$this->_permalink = get_permalink($this->ID);
		return $this->_permalink;
	}
public function link() {
		if ( isset($this->_permalink) ) {
			return $this->_permalink;
		}
		$this->_permalink = get_permalink($this->ID);
		return $this->_permalink;
	}
public function link ( ) { if ( isset ( $ this -> _permalink ) ) { return $ this -> _permalink ; } $ this -> _permalink = get_permalink ( $ this -> ID ) ; return $ this -> _permalink ; }
get the permalink for a post object
@api
@example
```twig
<a href="{{post.link}}">Read my post</a>
```
@return string ex: http://example.org/2015/07/my-awesome-post
get the permalink for a post object