public function type($type = null)
    {
        if (is_null($type)) {
            unset($this->filters['post_type']);
        } else {
            $this->filters['post_type'] = $type;
        }
        return $this;
    }
public function type($type = null)
    {
        if (is_null($type)) {
            unset($this->filters['post_type']);
        } else {
            $this->filters['post_type'] = $type;
        }
        return $this;
    }
public function type ( $ type = null ) { if ( is_null ( $ type ) ) { unset ( $ this -> filters [ 'post_type' ] ) ; } else { $ this -> filters [ 'post_type' ] = $ type ; } return $ this ; }
Adds a 'post_type' condition
@param  string $type
@return Query
Adds a post_type condition