Added publish flag to posts and projects