Change blog post constructor from public to private.
Fix get property from non-object.