Add function to get the element post_status