Made necessary checks to see if post is in published state. Still need to work in checks from other slug checking functions.