public function parent( $only_id = true ) {
		if ( $only_id ) {
			return $this->post->post_parent;
		}
		$class = get_called_class();
		return new $class( $this->post->post_parent );
	}
public function parent( $only_id = true ) {
		if ( $only_id ) {
			return $this->post->post_parent;
		}
		$class = get_called_class();
		return new $class( $this->post->post_parent );
	}
public function parent ( $ only_id = true ) { if ( $ only_id ) { return $ this -> post -> post_parent ; } $ class = get_called_class ( ) ; return new $ class ( $ this -> post -> post_parent ) ; }
Returns Post Parent.

@param boolean $only_id

@return int
Returns Post Parent .