lib/Post.php
public function type() {
		if ( isset($this->custom['type']) ) {
			return $this->custom['type'];
		}
		if ( !$this->__type instanceof PostType ) {
			$this->__type = new PostType($this->post_type);
		}
		return $this->__type;
	}
public function type() {
		if ( isset($this->custom['type']) ) {
			return $this->custom['type'];
		}
		if ( !$this->__type instanceof PostType ) {
			$this->__type = new PostType($this->post_type);
		}
		return $this->__type;
	}
public function type ( ) { if ( isset ( $ this -> custom [ 'type' ] ) ) { return $ this -> custom [ 'type' ] ; } if ( ! $ this -> __type instanceof PostType ) { $ this -> __type = new PostType ( $ this -> post_type ) ; } return $ this -> __type ; }
Returns the post_type object with labels and other info

@since 1.0.4
@example

```twig
This post is from <span>{{ post.type.labels.name }}</span>
```

```html
This post is from <span>Recipes</span>
```
@return PostType
Returns the post_type object with labels and other info